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
Click to show internal directories.
Click to hide internal directories.