Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CtxOptions ¶
type CtxOptions struct { genericclioptions.IOStreams // contains filtered or unexported fields }
CtxOptions provides information required to update the current context in a user's KUBECONFIG
func NewCtxOptions ¶
func NewCtxOptions(streams genericclioptions.IOStreams) *CtxOptions
NewCtxOptions provides an instance of CtxOptions with default values
func (*CtxOptions) Complete ¶
func (o *CtxOptions) Complete(cmd *cobra.Command, args []string) error
Complete sets all information required for updating the current context
func (*CtxOptions) Run ¶
func (o *CtxOptions) Run() error
Run lists all available contexts in a user's KUBECONFIG or updates the current context if the user passed one.
func (*CtxOptions) Validate ¶
func (o *CtxOptions) Validate() error
Validate ensures that all required arguments and flag values are provided
Click to show internal directories.
Click to hide internal directories.