Documentation
¶
Index ¶
- func AddAgent(agent model.Agent) (string, error)
- func AddJobFile(jobID string, jobFile model.JobFile) error
- func CreateJobDefinition(jobDef model.JobDefinition) (string, error)
- func CronSchedules() []*cron.Entry
- func DeleteJobDefinition(id string) error
- func DeleteSchedule(id string) error
- func FinishJob(id string) error
- func GetAgent(agentID string) (*model.Agent, error)
- func GetAgentStatus(agentID string) (map[string]interface{}, error)
- func GetAgents() ([]model.Agent, error)
- func GetJob(jobID string) (*model.Job, error)
- func GetJobDefinition(id string) (*model.JobDefinition, error)
- func GetJobDefinitions() ([]model.JobDefinition, error)
- func Init(c *config.Config) error
- func JobDirectories(jobID, parent string) ([]string, error)
- func JobFiles(jobID string, filters map[string]string) ([]model.JobFile, error)
- func JobList(filters map[string]string) ([]model.Job, error)
- func JobStatus(id string) (*model.JobMeta, error)
- func NewJob(jobDefinition model.JobDefinition, agentID string) (string, error)
- func NewSchedule(s model.Schedule) (string, error)
- func ScheduleList() ([]model.Schedule, error)
- func SendTestEmail() error
- func Shutdown()
- func UpdateAgent(agent model.Agent, loadKey bool) error
- func UpdateJobDefinition(jobDef model.JobDefinition) error
- func UpdateSchedule(s model.Schedule) error
- type ScheduledJob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJobFile ¶
AddJobFile adds a file entry to the job
func CreateJobDefinition ¶
func CreateJobDefinition(jobDef model.JobDefinition) (string, error)
func CronSchedules ¶
func DeleteJobDefinition ¶
func DeleteSchedule ¶
func GetAgentStatus ¶
func GetJobDefinition ¶
func GetJobDefinition(id string) (*model.JobDefinition, error)
func GetJobDefinitions ¶
func GetJobDefinitions() ([]model.JobDefinition, error)
func JobDirectories ¶
func ScheduleList ¶
func SendTestEmail ¶
func SendTestEmail() error
SendTestEmail checks the email configuration by attempting to send out a test email
func UpdateAgent ¶
UpdateAgent updates the information for given agent id
func UpdateJobDefinition ¶
func UpdateJobDefinition(jobDef model.JobDefinition) error
func UpdateSchedule ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.