utils

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

**********************************************************************

  • Check and quit on errors

func Download added in v0.0.2

func Download(cmd string)

func Execute

func Execute(command string, env Environment, dir string)

func ExecuteAndRetrieve

func ExecuteAndRetrieve(command string, env Environment, dir string) string

**********************************************************************

  • Execute a command, and return the output

func ExecuteRemote added in v0.0.2

func ExecuteRemote(host, cmd string, env Environment, dir string)

**********************************************************************

  • Execute a command on a remote Docker host

func ExecuteWithInput added in v0.0.2

func ExecuteWithInput(command, input string, env Environment, dir string)

func GetUberState added in v0.0.2

func GetUberState() string

func GetUberStateLenient added in v0.0.2

func GetUberStateLenient() string

func Required

func Required(value string, message string)

**********************************************************************

  • Assert that a variable exists

Types

type Dependency added in v0.0.2

type Dependency struct {
	Version        string
	Url            string
	ExtractCommand string
}

type Environment added in v0.0.2

type Environment map[string]string

Jump to

Keyboard shortcuts

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