Documentation ¶
Index ¶
- Variables
- func Usage(cmd Command) func()
- type Command
- type HelmfileCommand
- func (HelmfileCommand) CurrentAPIServer() (string, error)
- func (cmd *HelmfileCommand) Description() string
- func (cmd *HelmfileCommand) FlagSet() *flag.FlagSet
- func (cmd *HelmfileCommand) Name() string
- func (cmd *HelmfileCommand) Run() error
- func (cmd HelmfileCommand) ValidateConfig(config apis.Config, env string, validateAPIServer bool) error
- type HelpCommand
- type VersionCommand
- func (VersionCommand) CurrentAPIServer() (string, error)
- func (*VersionCommand) Description() string
- func (cmd *VersionCommand) FlagSet() *flag.FlagSet
- func (*VersionCommand) Name() string
- func (cmd *VersionCommand) Run() error
- func (cmd VersionCommand) ValidateConfig(config apis.Config, env string, validateAPIServer bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyCommand = NewHelmfileCommand( "apply", "Apply Helmfile releases, similar to `helmfile apply`", true, false, []string{"apply", "-i"}, )
View Source
var Commands = []Command{ ApplyCommand, DiffCommand, &HelpCommand{}, SyncCommand, TemplateCommand, &VersionCommand{}, }
View Source
var DiffCommand = NewHelmfileCommand( "diff", "Diff Helmfile releases, similar to `helmfile diff`", true, false, []string{"diff"}, )
View Source
var ErrConfig = errors.New("configuration error")
View Source
var ErrEnvNotSet = errors.New("-e/--environment must be set")
View Source
var SyncCommand = NewHelmfileCommand( "sync", "Sync Helmfile releases, similar to `helmfile sync`", true, false, []string{"sync", "-i"}, )
View Source
var TemplateCommand = NewHelmfileCommand( "template", "Template Helmfile releases, similar to `helmfile template`", false, true, []string{"template", "-i"}, )
Functions ¶
Types ¶
type HelmfileCommand ¶
type HelmfileCommand struct {
// contains filtered or unexported fields
}
func NewHelmfileCommand ¶
func (HelmfileCommand) CurrentAPIServer ¶
func (*HelmfileCommand) Description ¶
func (cmd *HelmfileCommand) Description() string
func (*HelmfileCommand) FlagSet ¶
func (cmd *HelmfileCommand) FlagSet() *flag.FlagSet
func (*HelmfileCommand) Name ¶
func (cmd *HelmfileCommand) Name() string
func (*HelmfileCommand) Run ¶
func (cmd *HelmfileCommand) Run() error
type HelpCommand ¶
type HelpCommand struct { }
func (HelpCommand) Description ¶
func (HelpCommand) Description() string
func (HelpCommand) FlagSet ¶
func (HelpCommand) FlagSet() *flag.FlagSet
func (HelpCommand) Name ¶
func (HelpCommand) Name() string
func (HelpCommand) Run ¶
func (HelpCommand) Run() error
type VersionCommand ¶
type VersionCommand struct {
// contains filtered or unexported fields
}
func (VersionCommand) CurrentAPIServer ¶
func (*VersionCommand) Description ¶
func (*VersionCommand) Description() string
func (*VersionCommand) FlagSet ¶
func (cmd *VersionCommand) FlagSet() *flag.FlagSet
func (*VersionCommand) Name ¶
func (*VersionCommand) Name() string
func (*VersionCommand) Run ¶
func (cmd *VersionCommand) Run() error
Click to show internal directories.
Click to hide internal directories.