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 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, buildTags 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 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.