Documentation ¶
Overview ¶
Package system provide system level operations
Index ¶
- func BuildGoBinary(serviceName string, executableOutput string, useCGO bool, buildID string, ...) error
- func GoPath() string
- func GoVersion(logger *logrus.Logger) (string, error)
- func RunAndCaptureOSCommand(cmd *exec.Cmd, stdoutWriter io.Writer, stderrWriter io.Writer, ...) error
- func RunOSCommand(cmd *exec.Cmd, logger *logrus.Logger) error
- func TemporaryFile(scratchDir string, name string) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGoBinary ¶ added in v1.8.0
func BuildGoBinary(serviceName string, executableOutput string, useCGO bool, buildID string, userSuppliedBuildTags string, linkFlags string, noop bool, logger *logrus.Logger) error
BuildGoBinary is a helper to build a go binary with the given options
func GoPath ¶
func GoPath() string
GoPath returns either $GOPATH or the new $HOME/go path introduced with Go 1.8
func RunAndCaptureOSCommand ¶ added in v1.9.0
func RunAndCaptureOSCommand(cmd *exec.Cmd, stdoutWriter io.Writer, stderrWriter io.Writer, logger *logrus.Logger) error
RunAndCaptureOSCommand runs the given command and captures the stdout and stderr
func RunOSCommand ¶
RunOSCommand properly executes a system command and writes the output to the provided logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.