Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandContext ¶
type CommandContext struct { context.Context ioutils.Terminal NewClient NewClientFunc }
CommandContext the context of the (standard) command to run
func NewCommandContext ¶
func NewCommandContext(term ioutils.Terminal, newClient NewClientFunc) *CommandContext
NewCommandContext returns the context of the command to run
type NewClientFunc ¶
type NewClientFunc func(string, string) (runtimeclient.Client, error)
NewClientFunc a function to create a `client.Client` with the given token and API endpoint
type TerminalContext ¶
TerminalContext the context terminal utilities and KubeClient
func NewTerminalContext ¶
func NewTerminalContext(term ioutils.Terminal) *TerminalContext
NewTerminalContext returns the context with the terminal utilities and the kubeClient to be used by the CLI command.
Click to show internal directories.
Click to hide internal directories.