Documentation ¶
Overview ¶
Package fury implements a minimalist machine configuration management system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Path is the path of the command to run. // // This is the only field that must be set to a non-zero // value. If Path is relative, it is evaluated relative // to Dir. Path string // Args holds command line arguments. Args []string // Env specifies the environment of the process. Env map[string]string // Dir specifies the working directory of the command. // If Dir is the empty string, the working directory is /. Dir string // Stdin specifies the process's standard input. // If Stdin is nil, the process reads from the null device (os.DevNull). Stdin io.Reader // Stdout and Stderr specify the process's standard output and error. // // If either is nil, Run connects the corresponding file descriptor // to the null device (os.DevNull). // // If Stdout and Stderr are the same writer, at most one // goroutine at a time will call Write. Stdout io.Writer Stderr io.Writer }
A Command represents an external program to run.
type ExitStatus ¶
type ExitStatus struct {
Status int
}
ExitStatus stores information about an executed Command.
func (ExitStatus) Error ¶
func (e ExitStatus) Error() string
type Runner ¶
type Runner interface { // Run executes cmd. // The returned error is nil if the command runs, has no problems // copying stdin, stdout, and stderr, and exits with a zero exit // status. Run(cmd *Command) error }
A Runner executes external programs.
type SSH ¶
type SSH struct {
// contains filtered or unexported fields
}
SSH runs commands over an SSH connection.
Click to show internal directories.
Click to hide internal directories.