console

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConsoleConfig

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

NewCmdConsoleConfig provides a cobra command wrapping ConsoleCmdOptions

Types

type ConsoleCmdOptions

type ConsoleCmdOptions struct {
	ClientConfig *rest.Config
	KubeClient   kubernetes.Interface

	// URL is true if the command should print the URL of the console instead of
	// opening the browser.
	URL bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ConsoleCmdOptions are options supported by the console command.

func NewConsoleCmdOptions

func NewConsoleCmdOptions(streams genericclioptions.IOStreams) *ConsoleCmdOptions

NewConsoleCmdOptions provides an instance of ConsoleCmdOptions with default values

func (*ConsoleCmdOptions) Complete

func (o *ConsoleCmdOptions) Complete(args []string) error

Complete sets up the KubeClient

func (*ConsoleCmdOptions) Run

func (o *ConsoleCmdOptions) Run() error

Run grabs the console URL, and either prints it to the terminal or opens it in your default web browser

func (*ConsoleCmdOptions) Validate

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