app

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 AppFlags

type AppFlags struct {
	NamespaceFlags cmdcore.NamespaceFlags
	Name           string
}

func (*AppFlags) Set

func (s *AppFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type ApplyFlags

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

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 DeployDiffExitStatus added in v0.17.0

type DeployDiffExitStatus struct {
	// contains filtered or unexported fields
}

func (DeployDiffExitStatus) Error added in v0.17.0

func (d DeployDiffExitStatus) Error() string

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
}

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
	ResourceTypesFlags  ResourceTypesFlags
	LabelFlags          LabelFlags
	// contains filtered or unexported fields
}

func NewDeployOptions

func NewDeployOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *DeployOptions

func (*DeployOptions) Run

func (o *DeployOptions) Run() error

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

func (*InspectOptions) Run

func (o *InspectOptions) Run() error

type InspectStatusView added in v0.12.0

type InspectStatusView struct {
	Source    string
	Resources []ctlres.Resource
}

func (InspectStatusView) Print added in v0.12.0

func (v InspectStatusView) Print(ui ui.UI)

type LabelFlags

type LabelFlags struct {
	Labels []string
}

func (*LabelFlags) AsMap

func (s *LabelFlags) AsMap() (map[string]string, error)

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, logger logger.Logger) *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, logger logger.Logger) *ListOptions

func (*ListOptions) Run

func (o *ListOptions) Run() error

type LogsFlags

type LogsFlags struct {
	Follow       bool
	Lines        int64
	ContainerTag bool
	PodName      string
}

func (*LogsFlags) PodLogOpts

func (s *LogsFlags) PodLogOpts() (ctllogs.PodLogOpts, error)

func (*LogsFlags) Set

func (s *LogsFlags) Set(cmd *cobra.Command)

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

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, logger logger.Logger) *RenameOptions

func (*RenameOptions) Run added in v0.11.0

func (o *RenameOptions) Run() error

type ResourceTypesFlags added in v0.15.0

type ResourceTypesFlags struct {
	IgnoreFailingAPIServices bool
}

func (*ResourceTypesFlags) Set added in v0.15.0

func (s *ResourceTypesFlags) Set(cmd *cobra.Command)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL