use

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdUse

func NewCmdUse(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdUse returns a cobra command for specify a nebula cluster to use

Types

type Options

type Options struct {
	Namespace               string
	NebulaClusterName       string
	NebulaClusterConfigFile string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

Options is a struct to support use command

func NewOptions

func NewOptions(streams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory, args []string) error

Complete completes all the required options

func (*Options) Run

func (o *Options) Run() error

Run executes use command

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command) error

Validate validates the provided options

Jump to

Keyboard shortcuts

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