testcluster

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForContainersToDie

func WaitForContainersToDie()

Types

type Instance

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

func NewInstance

func NewInstance() *Instance

func NewInstanceWithKeepAlive

func NewInstanceWithKeepAlive(aliveInterval int) *Instance

func (*Instance) Address

func (mockInstance *Instance) Address() string

func (*Instance) CreateDir

func (mockInstance *Instance) CreateDir(path string)

func (*Instance) CreateExecutableFiles added in v1.1.0

func (mockInstance *Instance) CreateExecutableFiles(files ...string)

func (*Instance) CreateScript

func (mockInstance *Instance) CreateScript(file, contents string)

func (*Instance) CreateUser

func (mockInstance *Instance) CreateUser(username, key string)

func (*Instance) DieInBackground

func (mockInstance *Instance) DieInBackground()

func (*Instance) FileExists

func (mockInstance *Instance) FileExists(path string) bool

func (*Instance) GetCreatedTime added in v1.1.0

func (mockInstance *Instance) GetCreatedTime(path string) string

func (*Instance) GetFileContents

func (mockInstance *Instance) GetFileContents(path string) string

func (*Instance) HostPublicKey

func (mockInstance *Instance) HostPublicKey() string

func (*Instance) IP

func (mockInstance *Instance) IP() string

func (*Instance) Run

func (mockInstance *Instance) Run(command ...string) string

func (*Instance) RunInBackground

func (mockInstance *Instance) RunInBackground(command string)

Jump to

Keyboard shortcuts

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