Documentation ¶
Index ¶
- Variables
- func AppFactory(depsFactory cmdcore.DepsFactory, appFlags AppFlags) (ctlapp.App, kubernetes.Interface, ctlres.IdentifiedResources, error)
- func AppFactoryClients(depsFactory cmdcore.DepsFactory, nsFlags cmdcore.NamespaceFlags) (ctlapp.Apps, kubernetes.Interface, ctlres.IdentifiedResources, error)
- func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewDeployCmd(o *DeployOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewDeployConfigCmd(o *DeployConfigOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewInspectCmd(o *InspectOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewLabelCmd(o *LabelOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewLogsCmd(o *LogsOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewRenameCmd(o *RenameOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- type AppFlags
- type ApplyFlags
- type DeleteOptions
- type DeployConfigOptions
- type DeployFlags
- type DeployOptions
- type InspectOptions
- type InspectStatusView
- type LabelFlags
- type LabelOptions
- type ListOptions
- type LogsFlags
- type LogsOptions
- type RenameOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApplyFlagsDeployDefaults = ApplyFlags{ ClusterChangeOpts: ctlcap.ClusterChangeOpts{ ApplyIgnored: false, Wait: true, WaitIgnored: false, }, } ApplyFlagsDeleteDefaults = ApplyFlags{ ClusterChangeOpts: ctlcap.ClusterChangeOpts{ ApplyIgnored: false, Wait: true, WaitIgnored: true, }, } )
View Source
var ( CommonFlagGroup = cobrautil.FlagHelpSection{ Title: "Common Flags:", ExactMatch: []string{"namespace", "app", "file", "diff-changes"}, } DiffFlagGroup = cobrautil.FlagHelpSection{ Title: "Diff Flags:", PrefixMatch: "diff", } ApplyFlagGroup = cobrautil.FlagHelpSection{ Title: "Apply Flags:", PrefixMatch: "apply", ExactMatch: []string{ "dangerous-allow-empty-list-of-resources", "dangerous-override-ownership-of-existing-resources", }, } WaitFlagGroup = cobrautil.FlagHelpSection{ Title: "Wait Flags:", PrefixMatch: "wait", ExactMatch: []string{"wait"}, } ResourceFilterFlagGroup = cobrautil.FlagHelpSection{ Title: "Resource Filter Flags:", PrefixMatch: "filter", ExactMatch: []string{"filter"}, } ResourceValidationFlagGroup = cobrautil.FlagHelpSection{ Title: "Resource Validation Flags:", PrefixMatch: "allow", } ResourceManglingFlagGroup = cobrautil.FlagHelpSection{ Title: "Resource Mangling Flags:", ExactMatch: []string{"into-ns", "map-ns"}, } LogsFlagGroup = cobrautil.FlagHelpSection{ Title: "Logs Flags:", PrefixMatch: "logs", ExactMatch: []string{"logs"}, } OtherFlagGroup = cobrautil.FlagHelpSection{ Title: "Available/Other Flags:", NoneMatch: true, } )
Functions ¶
func AppFactory ¶ added in v0.12.0
func AppFactory(depsFactory cmdcore.DepsFactory, appFlags AppFlags) ( ctlapp.App, kubernetes.Interface, ctlres.IdentifiedResources, error)
func AppFactoryClients ¶ added in v0.12.0
func AppFactoryClients(depsFactory cmdcore.DepsFactory, nsFlags cmdcore.NamespaceFlags) ( ctlapp.Apps, kubernetes.Interface, ctlres.IdentifiedResources, error)
func NewDeleteCmd ¶
func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewDeployCmd ¶
func NewDeployCmd(o *DeployOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewDeployConfigCmd ¶
func NewDeployConfigCmd(o *DeployConfigOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewInspectCmd ¶
func NewInspectCmd(o *InspectOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewLabelCmd ¶
func NewLabelCmd(o *LabelOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewListCmd ¶
func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewLogsCmd ¶
func NewLogsCmd(o *LogsOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewRenameCmd ¶ added in v0.11.0
func NewRenameCmd(o *RenameOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
Types ¶
type AppFlags ¶
type AppFlags struct { NamespaceFlags cmdcore.NamespaceFlags Name string }
type ApplyFlags ¶
type ApplyFlags struct { ctlcap.ClusterChangeSetOpts ctlcap.ClusterChangeOpts }
func (*ApplyFlags) SetWithDefaults ¶
func (s *ApplyFlags) SetWithDefaults(prefix string, defaults ApplyFlags, cmd *cobra.Command)
type DeleteOptions ¶
type DeleteOptions struct { AppFlags AppFlags DiffFlags cmdtools.DiffFlags ResourceFilterFlags cmdtools.ResourceFilterFlags ApplyFlags ApplyFlags // contains filtered or unexported fields }
func NewDeleteOptions ¶
func NewDeleteOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *DeleteOptions
func (*DeleteOptions) Run ¶
func (o *DeleteOptions) Run() error
type DeployConfigOptions ¶
type DeployConfigOptions struct {
// contains filtered or unexported fields
}
func NewDeployConfigOptions ¶
func NewDeployConfigOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *DeployConfigOptions
func (*DeployConfigOptions) Run ¶
func (o *DeployConfigOptions) Run() error
type DeployFlags ¶
type DeployFlags struct { ctlapp.PrepareResourcesOpts Patch bool AllowEmpty bool OverrideOwnershipOfExistingResources bool Logs bool LogsAll bool }
func (*DeployFlags) Set ¶
func (s *DeployFlags) Set(cmd *cobra.Command)
type DeployOptions ¶
type DeployOptions struct { AppFlags AppFlags FileFlags cmdtools.FileFlags DiffFlags cmdtools.DiffFlags ResourceFilterFlags cmdtools.ResourceFilterFlags ApplyFlags ApplyFlags DeployFlags DeployFlags LabelFlags LabelFlags // contains filtered or unexported fields }
func NewDeployOptions ¶
func NewDeployOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *DeployOptions
func (*DeployOptions) Run ¶
func (o *DeployOptions) Run() error
type InspectOptions ¶
type InspectOptions struct { AppFlags AppFlags ResourceFilterFlags cmdtools.ResourceFilterFlags Raw bool Status bool Tree bool // contains filtered or unexported fields }
func NewInspectOptions ¶
func NewInspectOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *InspectOptions
func (*InspectOptions) Run ¶
func (o *InspectOptions) Run() error
type InspectStatusView ¶ added in v0.12.0
func (InspectStatusView) Print ¶ added in v0.12.0
func (v InspectStatusView) Print(ui ui.UI)
type LabelFlags ¶
type LabelFlags struct {
Labels []string
}
func (*LabelFlags) Set ¶
func (s *LabelFlags) Set(cmd *cobra.Command)
type LabelOptions ¶
type LabelOptions struct { AppFlags AppFlags // contains filtered or unexported fields }
func NewLabelOptions ¶
func NewLabelOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *LabelOptions
func (*LabelOptions) Run ¶
func (o *LabelOptions) Run() error
type ListOptions ¶
type ListOptions struct { NamespaceFlags cmdcore.NamespaceFlags AllNamespaces bool // contains filtered or unexported fields }
func NewListOptions ¶
func NewListOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *ListOptions
func (*ListOptions) Run ¶
func (o *ListOptions) Run() error
type LogsFlags ¶
func (*LogsFlags) PodLogOpts ¶
func (s *LogsFlags) PodLogOpts() (ctllogs.PodLogOpts, error)
type LogsOptions ¶
type LogsOptions struct { AppFlags AppFlags LogsFlags LogsFlags // contains filtered or unexported fields }
func NewLogsOptions ¶
func NewLogsOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *LogsOptions
func (*LogsOptions) Run ¶
func (o *LogsOptions) Run() error
type RenameOptions ¶ added in v0.11.0
type RenameOptions struct { AppFlags AppFlags NewName string // contains filtered or unexported fields }
func NewRenameOptions ¶ added in v0.11.0
func NewRenameOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *RenameOptions
func (*RenameOptions) Run ¶ added in v0.11.0
func (o *RenameOptions) Run() error
Click to show internal directories.
Click to hide internal directories.