install

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kubectl

func Kubectl(stdin io.Reader, args ...string) error

func KubectlApply added in v0.13.0

func KubectlApply(manifest []byte, extraArgs ...string) error

func KubectlApplyOut added in v0.20.3

func KubectlApplyOut(manifest []byte, extraArgs ...string) ([]byte, error)

func KubectlDelete added in v0.17.0

func KubectlDelete(manifest []byte, extraArgs ...string) error

func KubectlOut added in v0.20.3

func KubectlOut(stdin io.Reader, args ...string) ([]byte, error)

func SetVerbose added in v0.17.0

func SetVerbose(b bool)

Types

type CmdKubectl added in v0.12.0

type CmdKubectl struct{}

func (*CmdKubectl) Kubectl added in v0.12.0

func (k *CmdKubectl) Kubectl(stdin io.Reader, args ...string) error

func (*CmdKubectl) KubectlOut added in v0.21.0

func (k *CmdKubectl) KubectlOut(stdin io.Reader, args ...string) ([]byte, error)

type KubeCli added in v0.12.0

type KubeCli interface {
	Kubectl(stdin io.Reader, args ...string) error
	KubectlOut(stdin io.Reader, args ...string) ([]byte, error)
}

type MockKubectl added in v0.21.1

type MockKubectl struct {
	Expected        []string
	Next            int
	StdoutLines     []string
	StdoutLineIndex int
}

func NewMockKubectl added in v0.21.1

func NewMockKubectl(cmds []string, stdoutLines []string) *MockKubectl

func (*MockKubectl) Kubectl added in v0.21.1

func (k *MockKubectl) Kubectl(stdin io.Reader, args ...string) error

func (*MockKubectl) KubectlOut added in v0.21.1

func (k *MockKubectl) KubectlOut(stdin io.Reader, args ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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