cluster

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCluster

type TestCluster struct {
	Name        string
	NativeFuncs []string
	Options     map[string]string
	platform.Cluster
}

TestCluster embedds a Cluster to provide platform independant helper methods.

func (*TestCluster) DropFile

func (t *TestCluster) DropFile(localPath string) error

DropFile places file from localPath to ~/ on every machine in cluster

func (*TestCluster) Error

func (t *TestCluster) Error(e error)

func (*TestCluster) Errorf

func (t *TestCluster) Errorf(format string, args ...interface{})

func (*TestCluster) ListNativeFunctions

func (t *TestCluster) ListNativeFunctions() []string

ListNativeFunctions returns a slice of function names that can be executed directly on machines in the cluster.

func (*TestCluster) RunNative

func (t *TestCluster) RunNative(funcName string, m platform.Machine) error

RunNative runs a registered NativeFunc on a remote machine

func (*TestCluster) Skip

func (t *TestCluster) Skip(args ...interface{})

func (*TestCluster) Skipf

func (t *TestCluster) Skipf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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