kubectl

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCmdWithTimeout

func RunCmdWithTimeout(timeout time.Duration, verbose bool, args ...string) (string, error)

Types

type Wrapper

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

func NewWrapper

func NewWrapper(verbose bool) *Wrapper

func (*Wrapper) CheckVersion

func (w *Wrapper) CheckVersion() (string, error)

func (*Wrapper) IsClusterResourceDeployed

func (w *Wrapper) IsClusterResourceDeployed(resource string, labelName string, labelValue string) (bool, error)

func (*Wrapper) IsPodDeployed

func (w *Wrapper) IsPodDeployed(namespace string, labelName string, labelValue string) (bool, error)

func (*Wrapper) IsPodReady

func (w *Wrapper) IsPodReady(namespace string, labelName string, labelValue string) (bool, error)

func (*Wrapper) IsResourceDeployed

func (w *Wrapper) IsResourceDeployed(resource string, namespace string, labelName string, labelValue string) (bool, error)

func (*Wrapper) RunApplyCmd

func (w *Wrapper) RunApplyCmd(resources []map[string]interface{}) (string, error)

func (*Wrapper) RunCmd

func (w *Wrapper) RunCmd(args ...string) (string, error)

func (*Wrapper) WaitForPodGone

func (w *Wrapper) WaitForPodGone(namespace string, labelName string, labelValue string) error

func (*Wrapper) WaitForPodReady

func (w *Wrapper) WaitForPodReady(namespace string, labelName string, labelValue string) error

Jump to

Keyboard shortcuts

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