Documentation
¶
Index ¶
- Variables
- 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 AppFactorySupportObjs
- type AppFlags
- type ApplyFlags
- type DeleteOptions
- type DeployConfigOptions
- type DeployDiffExitStatus
- type DeployFlags
- type DeployOptions
- type InspectOptions
- type InspectStatusView
- type LabelFlags
- type LabelOptions
- type ListOptions
- type LogsFlags
- type LogsOptions
- type RenameOptions
- type ResourceTypesFlags
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 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 AppFactorySupportObjs ¶ added in v0.15.0
type AppFactorySupportObjs struct {
CoreClient kubernetes.Interface
ResourceTypes *ctlres.ResourceTypesImpl
IdentifiedResources ctlres.IdentifiedResources
Apps ctlapp.Apps
}
func AppFactory ¶ added in v0.12.0
func AppFactory(depsFactory cmdcore.DepsFactory, appFlags AppFlags,
resTypesFlags ResourceTypesFlags, logger logger.Logger) (ctlapp.App, AppFactorySupportObjs, error)
func AppFactoryClients ¶ added in v0.12.0
func AppFactoryClients(depsFactory cmdcore.DepsFactory, nsFlags cmdcore.NamespaceFlags,
resTypesFlags ResourceTypesFlags, logger logger.Logger) (AppFactorySupportObjs, error)
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
ResourceTypesFlags ResourceTypesFlags
// contains filtered or unexported fields
}
func NewDeleteOptions ¶
func NewDeleteOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *DeleteOptions
type DeployConfigOptions ¶
type DeployConfigOptions struct {
// contains filtered or unexported fields
}
func NewDeployConfigOptions ¶
func NewDeployConfigOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *DeployConfigOptions
type DeployDiffExitStatus ¶ added in v0.17.0
type DeployDiffExitStatus struct {
// contains filtered or unexported fields
}
func (DeployDiffExitStatus) ExitStatus ¶ added in v0.17.0
func (d DeployDiffExitStatus) ExitStatus() int
type DeployFlags ¶
type DeployFlags struct {
ctlapp.PrepareResourcesOpts
Patch bool
AllowEmpty bool
OverrideOwnershipOfExistingResources bool
AppChangesMaxToKeep int
Logs bool
LogsAll bool
}
type DeployOptions ¶
type DeployOptions struct {
AppFlags AppFlags
FileFlags cmdtools.FileFlags
DiffFlags cmdtools.DiffFlags
ResourceFilterFlags cmdtools.ResourceFilterFlags
ApplyFlags ApplyFlags
DeployFlags DeployFlags
ResourceTypesFlags ResourceTypesFlags
LabelFlags LabelFlags
// contains filtered or unexported fields
}
func NewDeployOptions ¶
func NewDeployOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *DeployOptions
type InspectOptions ¶
type InspectOptions struct {
AppFlags AppFlags
ResourceFilterFlags cmdtools.ResourceFilterFlags
ResourceTypesFlags ResourceTypesFlags
Raw bool
Status bool
Tree bool
// contains filtered or unexported fields
}
func NewInspectOptions ¶
func NewInspectOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *InspectOptions
type InspectStatusView ¶ added in v0.12.0
type InspectStatusView struct {
Source string
Resources []ctlres.Resource
}
type LabelFlags ¶
type LabelFlags struct {
Labels []string
}
type LabelOptions ¶
type LabelOptions struct {
AppFlags AppFlags
// contains filtered or unexported fields
}
func NewLabelOptions ¶
func NewLabelOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *LabelOptions
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, logger logger.Logger) *ListOptions
type LogsFlags ¶
type LogsFlags struct {
Follow bool
Lines int64
ContainerTag bool
PodName string
}
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, logger logger.Logger) *LogsOptions
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, logger logger.Logger) *RenameOptions
type ResourceTypesFlags ¶ added in v0.15.0
type ResourceTypesFlags struct {
IgnoreFailingAPIServices bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.