getcmd

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdGet added in v0.0.15

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

Types

type GetFlags added in v0.0.15

type GetFlags struct {
	ResourceOuput *genericclioptions.ResourceOutputFlags
}

func NewGetFlags added in v0.0.15

func NewGetFlags() *GetFlags

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

func (*GetFlags) AddFlags added in v0.0.15

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

AddFlags add flags tp the command

func (*GetFlags) ToOptions added in v0.0.15

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

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

type GetOptions added in v0.0.15

type GetOptions struct {
	Factory           util.Factory
	Streams           *genericclioptions.IOStreams
	OutputFormat      string
	Namespace         string
	ShowManagedFields bool
}

func (*GetOptions) Run added in v0.0.15

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

func (*GetOptions) Validate added in v0.0.15

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

Jump to

Keyboard shortcuts

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