context

package
v0.0.0-...-ec701fa Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

type TerminalContext struct {
	context.Context
	ioutils.Terminal
}

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.

Jump to

Keyboard shortcuts

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