commands

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 32 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFnCommand

func GetFnCommand(ctx context.Context, name string) *cobra.Command

func GetKptCommands

func GetKptCommands(ctx context.Context, name, version string) []*cobra.Command

GetKptCommands returns the set of kpt commands to be registered

func GetLiveCommand

func GetLiveCommand(ctx context.Context, _, version string) *cobra.Command

func GetPkgCommand

func GetPkgCommand(ctx context.Context, name string) *cobra.Command

func NewCmdInstallRG added in v0.38.0

func NewCmdInstallRG(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdInstallRG returns the cobra command for the install-resource-group command.

func NormalizeCommand

func NormalizeCommand(c ...*cobra.Command)

NormalizeCommand will modify commands to be consistent, e.g. silencing errors

Types

type InstallRGRunner added in v0.38.0

type InstallRGRunner struct {
	Command *cobra.Command
	// contains filtered or unexported fields
}

InstallRGRunner encapsulates fields for the kpt live install-resource-group command.

func GetInstallRGRunner added in v0.38.0

func GetInstallRGRunner(factory cmdutil.Factory, ioStreams genericclioptions.IOStreams) *InstallRGRunner

GetInstallRGRunner returns a pointer to an initial InstallRGRunner structure.

func (*InstallRGRunner) Run added in v0.38.0

func (ir *InstallRGRunner) Run(reader io.Reader, args []string) error

Run executes the installation of the ResourceGroup custom resource definition. Uses the current context of the kube config file (or the kube config flags) to determine the APIServer to install the CRD.

Jump to

Keyboard shortcuts

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