Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateNew = "new" StateConfigured = "configured" StateRunning = "running" StateCanceling = "canceling" StateNotification = "notifications" StateFinished = "finished" StateFailed = "failed" StateCanceled = "canceled" TypeBackup = "backup" TypeRestore = "restore" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { ID string `json:"id,omitempty"` Name string `json:"name"` Address string `json:"address"` PublicKey string `json:"publickey"` }
Agent defines and agent
type Job ¶
type Job struct { ID string `json:"id"` Agent *Agent `json:"agent,omitempty"` Definition *JobDefinition `json:"definition"` Meta *JobMeta `json:"meta"` }
type JobDefinition ¶
type JobDefinition struct { ID string `json:"id,omitempty"` Type string `json:"type"` To []engine.Definition `json:"to"` From *engine.Definition `json:"from,omitempty"` Modifications []modification.Definition `json:"modifications"` Paths []Path `json:"paths,omitempty"` Files []files.File `json:"files,omitempty"` }
type Schedule ¶
type Schedule struct { ID string `json:"id,omitempty"` JobDefinitionID string `json:"jobDefinitionId"` AgentID string `json:"agentID"` Seconds string `json:"seconds"` Minutes string `json:"minutes"` Hour string `json:"hour"` DOM string `json:"dom"` MON string `json:"mon"` DOW string `json:"dow"` }
Schedule defines when a backup should run
Click to show internal directories.
Click to hide internal directories.