Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Spec CommandSpec Status CommandStatus }
type CommandSpec ¶
func Cmd ¶
func Cmd(cmd string, args ...string) CommandSpec
func (*CommandSpec) String ¶
func (c *CommandSpec) String() string
type CommandStatus ¶
type CommandStatus struct { Pid int State ProcessState Message string }
type CooldownError ¶
type Proc ¶
type Proc struct {
// contains filtered or unexported fields
}
func StartProcess ¶
func StartProcess(logger *logrus.Entry, terminationSignal syscall.Signal, terminationGracePeriod time.Duration, cmd CommandSpec) (*Proc, error)
StartProcess starts a process.
type ProcessState ¶
type ProcessState string
const ( ProcessStateRunning ProcessState = "running" ProcessStateFailed ProcessState = "failed" ProcessStateExited ProcessState = "exited" )
type Runner ¶
type Runner struct { Reporter StatusReportFunc TerminationSignal syscall.Signal TerminationGracePeriod time.Duration // contains filtered or unexported fields }
func (*Runner) SignalReload ¶
type StatusReportFunc ¶
type StatusReportFunc func(cmd Command)
Click to show internal directories.
Click to hide internal directories.