kubectl

package
v0.82.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

Cmd is the kubectl command to execute.

func New

func New(kubeconfigPath string, logger log.FieldLogger) (*Cmd, error)

New creates a new instance of Cmd through which to execute kubectl.

func (*Cmd) Close

func (c *Cmd) Close() error

Close is a no-op.

func (*Cmd) RunCommandRaw

func (c *Cmd) RunCommandRaw(arg ...string) ([]byte, error)

RunCommandRaw runs any given kubectl command returning raw output.

func (*Cmd) RunGenericCommand

func (c *Cmd) RunGenericCommand(arg ...string) error

RunGenericCommand runs any given kubectl command.

func (*Cmd) Version

func (c *Cmd) Version() (string, error)

Version invokes kubectl version and returns the value.

Jump to

Keyboard shortcuts

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