util

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubectlRunner

type KubectlRunner struct {
	T          *testing.T
	BinaryPath string
}

func NewKubectlRunner

func NewKubectlRunner(t *testing.T) *KubectlRunner

func (*KubectlRunner) CreateRandomNamespace

func (k *KubectlRunner) CreateRandomNamespace() string

func (*KubectlRunner) DeleteNamespace

func (k *KubectlRunner) DeleteNamespace(namespace string) error

func (*KubectlRunner) GetPod

func (k *KubectlRunner) GetPod(name, namespace string) *api.Pod

func (*KubectlRunner) IsPodReady

func (k *KubectlRunner) IsPodReady(p *api.Pod) bool

func (*KubectlRunner) RunCommand

func (k *KubectlRunner) RunCommand(args []string) (stdout []byte, err error)

func (*KubectlRunner) RunCommandParseOutput

func (k *KubectlRunner) RunCommandParseOutput(args []string, outputObj interface{}) error

type MinikubeRunner

type MinikubeRunner struct {
	T          *testing.T
	BinaryPath string
	Args       string
}

func (*MinikubeRunner) CheckStatus

func (m *MinikubeRunner) CheckStatus(desired string)

func (*MinikubeRunner) CheckStatusNoFail added in v0.17.0

func (m *MinikubeRunner) CheckStatusNoFail(desired string) error

func (*MinikubeRunner) EnsureRunning

func (m *MinikubeRunner) EnsureRunning()

func (*MinikubeRunner) GetStatus

func (m *MinikubeRunner) GetStatus() string

func (*MinikubeRunner) RunCommand

func (m *MinikubeRunner) RunCommand(command string, checkError bool) string

func (*MinikubeRunner) SSH

func (m *MinikubeRunner) SSH(command string) (string, error)

func (*MinikubeRunner) SetEnvFromEnvCmdOutput

func (m *MinikubeRunner) SetEnvFromEnvCmdOutput(dockerEnvVars string) error

func (*MinikubeRunner) Start

func (m *MinikubeRunner) Start()

Jump to

Keyboard shortcuts

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