Documentation
¶
Overview ¶
Package client provides Chronos operations
Index ¶
- type Client
- func (cl Client) AddDepJob(jsonContent string) (bool, error)
- func (cl Client) AddJob(jsonContent string) (bool, error)
- func (cl Client) DeleteJob(jobName string) (bool, error)
- func (cl Client) DepGraph() (string, error)
- func (cl Client) Jobs() ([]Job, error)
- func (cl Client) KillJobTasks(jobName string) (bool, error)
- func (cl Client) PrintJobs(pretty bool) error
- func (cl Client) RunJob(jobName, args string) (bool, error)
- func (cl Client) UpdateJobTaskProgress(jobName, taskID, jsonContent string) (bool, error)
- type EnvVars
- type Job
- type JobContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
URL string
}
Client represents the Chronos client interface
func (Client) KillJobTasks ¶
KillJobTasks kills the Chronos job tasks
type Job ¶
type Job struct {
Name string `json:"name"`
Description string `json:"description"`
Command string `json:"command"`
Arguments []string `json:"arguments"`
Shell bool `json:"shell"`
Epsilon string `json:"epsilon"`
Executor string `json:"executor"`
ExecutorFlags string `json:"executorFlags"`
Retries int `json:"retries"`
Owner string `json:"owner"`
OwnerName string `json:"ownerName"`
Async bool `json:"async"`
SuccessCount int `json:"successCount"`
ErrorCount int `json:"errorCount"`
LastSuccess string `json:"lastSuccess"`
LastError string `json:"lastError"`
Cpus float64 `json:"cpus"`
Mem float64 `json:"mem"`
Disk float64 `json:"disk"`
Disabled bool `json:"disabled"`
Uris []string `json:"uris"`
Schedule string `json:"schedule"`
ScheduleTimeZone string `json:"scheduleTimeZone"`
Parents []string `json:"parents"`
RunAsUser string `json:"runAsUser"`
Container *JobContainer `json:"container"`
DataJob bool `json:"dataJob"`
EnvironmentVariables []*EnvVars `json:"environmentVariables"`
Constraints [][]string `json:"constraints"`
}
Job represents Chronos job configuration
Click to show internal directories.
Click to hide internal directories.