applycmd

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdApply added in v0.0.15

func NewCmdApply(f util.Factory, streams *genericclioptions.IOStreams) *cobra.Command

NewCmdApply returns a cobra command.

Types

type ApplyFlags added in v0.0.15

type ApplyFlags struct {
	FileNameFlags *genericclioptions.FileNameFlags
}

func NewApplyFlags added in v0.0.15

func NewApplyFlags() *ApplyFlags

NewApplyFlags determines which flags will be added to the command The defaults are determined here

func (*ApplyFlags) AddFlags added in v0.0.15

func (r *ApplyFlags) AddFlags(cmd *cobra.Command)

AddFlags add flags to the command

func (*ApplyFlags) ToOptions added in v0.0.15

func (r *ApplyFlags) ToOptions(cmd *cobra.Command, f util.Factory, streams *genericclioptions.IOStreams) (*ApplyOptions, error)

ToOptions renders the options based on the flags that were set and will be the base context used to run the command

type ApplyOptions added in v0.0.15

type ApplyOptions struct {
	Factory       util.Factory
	Streams       *genericclioptions.IOStreams
	FileNameFlags *genericclioptions.FileNameFlags
}

func (*ApplyOptions) GetObjects added in v0.0.15

func (r *ApplyOptions) GetObjects() ([]*resource.Info, error)

func (*ApplyOptions) Run added in v0.0.15

func (r *ApplyOptions) Run(ctx context.Context, args []string) error

func (*ApplyOptions) Validate added in v0.0.15

func (r *ApplyOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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