Documentation
¶
Index ¶
- func ExtractSentinel(line string) (string, int, int, bool)
- func ParseSentinel(line string) (int, int, bool)
- func SentinelFor(jobID int) string
- type HostState
- type HostStatus
- type Job
- type JobType
- type Manager
- func (m *Manager) AsyncJobs() []*Job
- func (m *Manager) CreateJob(t JobType, command string, hosts []string) *Job
- func (m *Manager) Job(jobID int) *Job
- func (m *Manager) MarkHostDone(jobID int, host string, exitCode int, success bool)
- func (m *Manager) MarkHostRunning(jobID int, host string)
- func (m *Manager) NormalJobs() []*Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SentinelFor ¶
Types ¶
type HostStatus ¶
type HostStatus struct {
Host string
State HostState
ExitCode int
Duration time.Duration
// contains filtered or unexported fields
}
func (*HostStatus) Elapsed ¶
func (h *HostStatus) Elapsed() time.Duration
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) MarkHostDone ¶
func (*Manager) MarkHostRunning ¶
func (*Manager) NormalJobs ¶
Click to show internal directories.
Click to hide internal directories.