kubectl

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info added in v0.0.7

func Info(ctx context.Context) (string, *semver.Version, error)

func Invoke

func Invoke(ctx context.Context, args []string, opt ...Option) error

Types

type Kubectl added in v0.0.7

type Kubectl struct {
	// contains filtered or unexported fields
}

func New added in v0.0.7

func New(options ...Option) *Kubectl

func (*Kubectl) Invoke added in v0.0.7

func (k *Kubectl) Invoke(ctx context.Context, arg ...string) error

type Option added in v0.0.7

type Option func(h *Kubectl)

func WithContext added in v0.0.7

func WithContext(context string) Option

func WithDefaultOutput added in v0.0.7

func WithDefaultOutput() Option

func WithInput added in v0.0.7

func WithInput(stdin io.Reader) Option

func WithKubeconfig added in v0.0.7

func WithKubeconfig(kubeconfig string) Option

func WithNamespace added in v0.0.7

func WithNamespace(namespace string) Option

func WithOutput added in v0.0.7

func WithOutput(stdout, stderr io.Writer) Option

Jump to

Keyboard shortcuts

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