cmd

package
v0.0.0-...-9b8ef6d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdWtf

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

NewCmdWtf provides a cobra command wrapping WtfOptions

Types

type WtfOptions

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

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

func NewWtfOptions

func NewWtfOptions(streams genericclioptions.IOStreams) *WtfOptions

NewWtfOptions provides an instance of WtfOptions with default values

func (*WtfOptions) Complete

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

Complete sets all information required for updating the current context

func (*WtfOptions) Run

func (o *WtfOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*WtfOptions) Validate

func (o *WtfOptions) 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