console

package
v1.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConsole

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

NewCmdConsole returns a cobra command for open console to the specified nebula cluster

Types

type Options

type Options struct {
	Namespace         string
	NebulaClusterName string
	Image             string
	ImagePullPolicy   corev1.PullPolicy

	User     string
	Password string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

Options is a struct to support console command

func NewOptions

func NewOptions(ioStreams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) AddFlags

func (o *Options) AddFlags(cmd *cobra.Command)

AddFlags add all the flags.

func (*Options) Complete

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

Complete completes all the required options

func (*Options) Run

func (o *Options) Run() error

Run executes console 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