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