cmd

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNsCmd

func NewNsCmd(streams genericclioptions.IOStreams) *cobra.Command

NewNsCmd provides a cobra command wrapping NsOptions

Types

type NsOptions

type NsOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

NsOptions provides information required to update the current context on a user's KUBECONFIG

func NewNsOptions

func NewNsOptions(streams genericclioptions.IOStreams) *NsOptions

NewNsOptions provides an instance of NsOptions with default values

func (*NsOptions) Complete

func (o *NsOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current namespace

func (*NsOptions) Run

func (o *NsOptions) Run() error

Run lists all available namespaces, or updates the current namesapce based on a provided namespace.

func (*NsOptions) Validate

func (o *NsOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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