kubectl

package
v0.0.0-...-a606d81 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 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 Kubectl

type Kubectl struct {
	Command *exec.Cmd
	Input   []byte
	Error   []byte
	Output  []byte
}

Kubectl is used to keep track of commands ran through the kubectl cli

func NewApplyCmd

func NewApplyCmd(path string) *Kubectl

NewApplyCmd streams the input to the kubectl apply command

func NewDeleteByLabelCmd

func NewDeleteByLabelCmd(namespace string, labels ...string) *Kubectl

NewDeleteByLabelCmd deletes all in namespaces that match labels. Which are 'and' together

func NewDeleteCmd

func NewDeleteCmd(path string) *Kubectl

NewDeleteCmd stremes the input to the kubectl delete command

func (*Kubectl) Run

func (kc *Kubectl) Run() error

Run runs the kubectl command created

Jump to

Keyboard shortcuts

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