kubectl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 14 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 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 string) bool

Jump to

Keyboard shortcuts

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