package
Version:
v0.0.0-...-0548c99
Opens a new window with list of versions in this module.
Published: May 11, 2018
License: GPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type HTTP struct {
URL string `json:"url"`
Method string `json:"method"`
Data map[string]string `json:"data,omitempty"`
Files []*HTTPFile `json:"files,omitempty"`
}
type HTTPFile struct {
Filename string `json:"filename"`
Path string `json:"path"`
}
type Job struct {
Retry *Retry `json:retry,omitempty"`
TaskDefault *TaskDefault `json:"task_default,omitempty"`
Tasks []*Task `json:"tasks"`
FinishReportURL string `json:"finish_report_url,omitempty"`
}
type Retry struct {
Number int `json:"number,omitempty"`
Timeout string `json:"timeout,omitempty"`
DelayTime string `json:"delay,omitempty"`
NumRetry int `json:"-"`
CheckedTime *time.Time `json:"-"`
}
type Task struct {
Name string `json:"name"`
Cmd string `json:"cmd,omitempty"`
HTTP *HTTP `json:"http,omitempty"`
When string `json:"when,omitempty"`
Timeout string `json:"timeout,omitempty"`
Retry Retry `json:"retry,omitempty"`
}
Read is to execute Template context for each variables
type TaskDefault struct {
Retry Retry `json:"retry,omitempty"`
Timeout string `json:"timeout,omitempty"`
Vars map[string]string `json:"vars,omitempty"`
}
Read is to execute Template context for each variables
Source Files
¶
Click to show internal directories.
Click to hide internal directories.