kubectl

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 16 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 interface {
	Apply(input string) error
	Cleanup()
	DeploymentExists(name string) bool
	RolloutStatus(name, timeout string) bool
	DeploymentEvents(name string) string
	PodEvents(name string) string
}

func New

func New(environment *config.Environment, out, eout io.Writer) Kubectl

type MockKubectl

type MockKubectl struct {
	Inputs     []string
	Responses  []error
	Deployment bool
	Status     bool
}

func (*MockKubectl) Apply

func (m *MockKubectl) Apply(input string) error

func (*MockKubectl) Cleanup

func (m *MockKubectl) Cleanup()

func (*MockKubectl) DeploymentEvents

func (m *MockKubectl) DeploymentEvents(name string) string

func (*MockKubectl) DeploymentExists

func (m *MockKubectl) DeploymentExists(name string) bool

func (*MockKubectl) PodEvents

func (m *MockKubectl) PodEvents(name string) string

func (*MockKubectl) RolloutStatus

func (m *MockKubectl) RolloutStatus(name, timeout string) bool

Jump to

Keyboard shortcuts

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