Documentation ¶
Index ¶
- Constants
- Variables
- func FindNamedStringCaptures(re *regexp.Regexp, x string) map[string]string
- func Run() (request_chan chan Request)
- type ChangeJobStatusRequest
- type CommandRun
- type HostRun
- type Job
- type JobHistory
- type JobList
- type JobNotifier
- type JobReport
- type JobReportWithHistory
- type JobRun
- type JobsByName
- type LoadConfigRequest
- type Request
- type RunInfo
- type RunJobRequest
- type RunStatus
- type StatusRequest
- type StatusResponse
- type UpdatePoolRequest
Constants ¶
View Source
const TIMEOUT = 1
Variables ¶
View Source
var RunStatusNames = []string{
"none",
"running",
"succeeded",
"failed",
"cancelled",
"abandoned",
}
Functions ¶
func FindNamedStringCaptures ¶
Types ¶
type ChangeJobStatusRequest ¶
Change Job Status
type CommandRun ¶
type Job ¶
type Job struct { config.JobSpec RunInfo RunId int RunsOutstanding int RunsQueued int LastChecked time.Time PoolIndex int History JobHistory `json:"-"` }
Job runtime
type JobHistory ¶
type JobHistory []JobRun
func (JobHistory) Less ¶
func (slice JobHistory) Less(i, j int) bool
func (JobHistory) Swap ¶
func (slice JobHistory) Swap(i, j int)
type JobNotifier ¶
func (JobNotifier) Notify ¶
func (notifier JobNotifier) Notify(job *Job)
type JobReportWithHistory ¶
type JobReportWithHistory struct { Job PoolHosts []string DetailURI string Runs JobHistory }
type JobRun ¶
type JobRun struct { RunInfo RunId int JobName string `json:",omitempty"` HostRuns []HostRun DetailURI string `json:",omitempty"` }
func (JobRun) GetHostRunById ¶
type JobsByName ¶
type JobsByName []JobReport
func (JobsByName) Len ¶
func (slice JobsByName) Len() int
func (JobsByName) Less ¶
func (slice JobsByName) Less(i, j int) bool
func (JobsByName) Swap ¶
func (slice JobsByName) Swap(i, j int)
type StatusRequest ¶
type StatusRequest struct { Object []string Chan chan StatusResponse }
Status Request (report job, run or host/command details)
type UpdatePoolRequest ¶
Click to show internal directories.
Click to hide internal directories.