Documentation ¶
Index ¶
- func CreateHistory(name string, idx int, before, after io.Reader) error
- func CreateJob(cfg *Job) error
- func CreateTmp(name string) error
- func DeleteTmp(name string) error
- func EditJob(name string) error
- func GetJob(name string, out interface{}) error
- func GetJobs() (jobs []string)
- func Init() error
- func PutTmp(job, name string, reader io.Reader) error
- func RemoveJob(name string) error
- func ShowHistory(name, idx string) error
- func TmpDiff(name, before, after string) error
- func UpdateJob(job *Job) error
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHistory ¶
CreateHistory is func to create hisotry
func ShowHistory ¶
ShowHistory is func to open job execution history
Types ¶
type Job ¶
type Job struct { Name string `json:"name"` Hosts []string `json:"hosts"` Port string `json:"port"` Abs string `json:"abs"` Username string `json:"username"` PrivateKey string `json:"private_key"` LastUpdated time.Time `json:"last_updated"` LatestIdx int `json:"latest_idx"` }
Job is struct of operation configuration
Click to show internal directories.
Click to hide internal directories.