cmd

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdNamespace

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

NewCmdNamespace provides a cobra command wrapping NamespaceOptions

Types

type NamespaceOptions

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

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

func NewNamespaceOptions

func NewNamespaceOptions(streams genericclioptions.IOStreams) *NamespaceOptions

NewNamespaceOptions provides an instance of NamespaceOptions with default values

func (*NamespaceOptions) Complete

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

Complete sets all information required for updating the current context

func (*NamespaceOptions) Run

func (o *NamespaceOptions) Run() error

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

func (*NamespaceOptions) Validate

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