utilities

package
v0.0.0-...-19f8562 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKOWN_PLUGIN         = "Plugin name must be specified."
	UNKOWN_OSES           = "oses is unkown."
	APP_NOT_FOUND         = "app is not found."
	UNKNOWN_SCENARIO_DEST = "scenario dest is unknown."
	INVALID_REPOSITORY    = "app repository has invalid format."
	INVENTORY_MISSING     = "playbook inventory is missing."
	UNKNOWN_CONTAINERS    = "playbook has no associated container."
)
View Source
const (
	DEFAULT_APP_STATE  = "running"
	DEFAULT_APP_TYPE   = "generic"
	DEFAULT_APP_BRANCH = "master"
)

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func CleanupTempFiles

func CleanupTempFiles(suffix string)

func DownloadFile

func DownloadFile(url string, suffix string) (string, error)

func Exists

func Exists(path string) error

func ParseEnvFlags

func ParseEnvFlags(input string) string

func ParseTemplate

func ParseTemplate(input string, base interface{}, app string) string

func RunCmd

func RunCmd(name string, arg ...string) error

func WriteFile

func WriteFile(content []byte, fileType string, suffix string) (string, error)

Types

type S

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

func Spec

func Spec(t *testing.T) *S

func (*S) Expect

func (s *S) Expect(expected ...interface{}) (sr *SR)

func (*S) ExpectString

func (s *S) ExpectString(str string) (sr *SR)

type SR

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

func (*SR) ToContain

func (sr *SR) ToContain(actual string)

func (*SR) ToEqual

func (sr *SR) ToEqual(actuals ...interface{})

func (*SR) ToNotEqual

func (sr *SR) ToNotEqual(actuals ...interface{})

Jump to

Keyboard shortcuts

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