Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRunning = fmt.Errorf("The process isn't running")
ErrNotRunning is returned when performing an action against a stopped process.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
Name string `yaml:"name"`
Args []string `yaml:"args,flow"`
Pid int64 `yaml:"pid"`
Stdout string `yaml:"stdout"`
Stderr string `yaml:"stderr"`
// contains filtered or unexported fields
}
Process struct. Has ability to set runtime arguments
func ImportProcess ¶
ImportProcess imports a saved process into a subprocess object.
func NewProcess ¶
NewProcess is a constructor for a process object. Represents a process with argument config. Returns an address to process
func (*Process) Save ¶
Save will save the given process object to a YAML file. Can be imported at a later point.
Click to show internal directories.
Click to hide internal directories.