cmd

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtxCmd

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

NewCtxCmd provides a cobra command wrapping CtxOptions

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 curren 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

Jump to

Keyboard shortcuts

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