Versions in this module Expand all Collapse all v0 v0.3.0 Oct 28, 2014 v0.1.0 Oct 28, 2014 Changes in this version + func CalculateNetworkAndBroadcast(ipAddress, netmask string) (network, broadcast string, err error) + type CmdRunner interface + CommandExists func(cmdName string) (exists bool) + RunCommand func(cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error) + RunCommandWithInput func(input, cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error) + RunComplexCommand func(cmd Command) (stdout, stderr string, exitStatus int, err error) + RunComplexCommandAsync func(cmd Command) (Process, error) + func NewExecCmdRunner(logger boshlog.Logger) CmdRunner + type Command struct + Args []string + Env map[string]string + Name string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + UseIsolatedEnv bool + WorkingDir string + type ExecError struct + func NewExecError(cmd, stdout, stderr string) ExecError + func (e ExecError) Error() string + func (e ExecError) ShortError() string + type FileSystem interface + Chmod func(path string, perm os.FileMode) (err error) + Chown func(path, username string) (err error) + ConvergeFileContents func(path string, content []byte) (written bool, err error) + CopyFile func(srcPath, dstPath string) (err error) + FileExists func(path string) bool + Glob func(pattern string) (matches []string, err error) + HomeDir func(username string) (path string, err error) + MkdirAll func(path string, perm os.FileMode) (err error) + OpenFile func(path string, flag int, perm os.FileMode) (ReadWriteCloseStater, error) + ReadFile func(path string) (content []byte, err error) + ReadFileString func(path string) (content string, err error) + ReadLink func(symlinkPath string) (targetPath string, err error) + RemoveAll func(fileOrDir string) (err error) + Rename func(oldPath, newPath string) (err error) + Symlink func(oldPath, newPath string) (err error) + TempDir func(prefix string) (path string, err error) + TempFile func(prefix string) (file *os.File, err error) + WriteFile func(path string, content []byte) (err error) + WriteFileString func(path, content string) (err error) + func NewOsFileSystem(logger boshlog.Logger) FileSystem + type Process interface + TerminateNicely func(killGracePeriod time.Duration) error + Wait func() <-chan Result + type ReadWriteCloseStater interface + ReadAt func([]byte, int64) (int, error) + Stat func() (os.FileInfo, error) + type Result struct + Error error + ExitStatus int + Stderr string + Stdout string