show

package
v0.0.0-...-fd304d8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPreferences = errors.New("no preferences in kubeconfig")

ErrNoPreferences is the singleton returned when kubeconfig contains no extended preferences.

Functions

func NewCommand

func NewCommand(f cmdutil.Factory, s genopts.IOStreams) *cobra.Command

NewCommand initializes an instance of the show command.

Types

type Options

type Options struct {
	genopts.IOStreams
	resource.FilenameOptions
	*v1alpha1.ShowConfig

	ChunkSize     int64
	LabelSelector string
	NoHeaders     bool
	ListFormats   bool
	Toposort      bool
	OutputFormats []string

	Namespace         string
	AllNamespaces     bool
	ExplicitNamespace bool
}

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete takes the command arguments and factory and infers any remaining options.

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command) error

Validate checks the set of flags provided by the user.

Jump to

Keyboard shortcuts

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