Documentation
¶
Index ¶
- func BindOptions(opts *RawOptions, cmd *cobra.Command) error
- func DetermineMergeBase(ctx context.Context, dir, centralRemoteUrl string) (string, error)
- func NewCommand(centralRemoteUrl string) (*cobra.Command, error)
- func ValidateServiceConfig(ctx context.Context, contexts map[string]map[string][]RegionContext, ...) error
- type CloudDigests
- type Digests
- type EnvironmentDigests
- type Options
- type RawOptions
- type RegionContext
- type ValidatedOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindOptions ¶
func BindOptions(opts *RawOptions, cmd *cobra.Command) error
func DetermineMergeBase ¶
DetermineMergeBase determines the merge base between HEAD and what we think the upstream target branch is.
Types ¶
type CloudDigests ¶
type CloudDigests struct {
Environments map[string]EnvironmentDigests `json:"environments"`
}
type Digests ¶
type Digests struct {
Clouds map[string]CloudDigests `json:"clouds"`
}
func LoadDigests ¶
type EnvironmentDigests ¶
type RawOptions ¶
type RawOptions struct {
ServiceConfigFile string
DevSettingsFile string
CentralRemoteUrl string
DigestFile string
OutputDir string
Update bool
}
RawOptions holds input values.
func DefaultOptions ¶
func DefaultOptions(outputDir string, url string) *RawOptions
func (*RawOptions) Validate ¶
func (o *RawOptions) Validate() (*ValidatedOptions, error)
type RegionContext ¶
type ValidatedOptions ¶
type ValidatedOptions struct {
// contains filtered or unexported fields
}
func (*ValidatedOptions) Complete ¶
func (o *ValidatedOptions) Complete() (*Options, error)
Click to show internal directories.
Click to hide internal directories.