Documentation ¶
Index ¶
- func Append(slice []string, data string) []string
- func CreateFile(path string) error
- func DeisIfy(message string) string
- func Execute(script string) error
- func Extract(file, dir string) (err error)
- func GetClientID() string
- func GetFileBytes(filename string) []byte
- func GetHostIPAddress() string
- func GetHostOs() string
- func GetKey(dir, key, perm string) string
- func GetMachineID(root string) string
- func GetRandomPort() string
- func GetUserDetails() (string, string)
- func GetVersion() string
- func ListFiles(dir string) ([]string, error)
- func NewUuid() string
- func PullImage(args string) error
- func PutVersion(version string) error
- func RunCommandWithStdoutStderr(cmd *exec.Cmd) (bytes.Buffer, bytes.Buffer, error)
- func Timeout(msg string, seconds time.Duration, f func()) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates an empty file at the specified path.
func GetClientID ¶
func GetClientID() string
GetClientID returns the CoreOS Machine ID or an unknown UUID string
func GetFileBytes ¶
GetFileBytes returns a byte array of the contents of a file.
func GetHostIPAddress ¶
func GetHostIPAddress() string
GetHostIPAddress returns the host IP for accessing etcd and Deis services.
func GetMachineID ¶
func GetRandomPort ¶
func GetRandomPort() string
GetRandomPort returns an unused TCP listen port on the host.
func GetUserDetails ¶
GetUserDetails returns sections of a UUID.
func GetVersion ¶
func GetVersion() string
func PutVersion ¶
func RunCommandWithStdoutStderr ¶
RunCommandWithStdoutStderr execs a command and returns its output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.