Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackupErrorCrytical = "alert" BackupErrorCleanup = "warning" BackupErrorTask = "warning" BackupErrorTaskAll = "alert" BackupErrorNo = "success" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
StartNow bool `json:"start_now"`
Destination Destination `json:"destination"`
TmpDir string `json:"tmp_dir"`
Tasks []TaskConfig `json:"tasks"`
Period Period `json:"period"`
}
type BackupResult ¶
type BackupResult struct {
Prepare PathResult `json:"prepare"`
Lock PathResult `json:"lock"`
Backup []PathResult `json:"backup"`
Encrypt PathResult `json:"encrypt"`
Upload PathResult `json:"upload"`
Unlock PathResult `json:"unlock"`
Cleanup PathResult `json:"cleanup"`
BeginTime time.Time `json:"begin_time"`
EndTime time.Time `json:"end_time"`
Size int64 `json:"size"`
Status string `json:"status"`
}
type ClientConfig ¶
type ClientConfig struct {
Token string
}
type Destination ¶
type PathResult ¶
type PathResult struct {
Err *string `json:"error"`
Path string `json:"path"`
Output *string `json:"output"`
BeginTime time.Time `json:"begin_time"`
EndTime time.Time `json:"end_time"`
}
func NewPathResult ¶
func NewPathResult(err error, path, output string, begin, end time.Time) PathResult
Click to show internal directories.
Click to hide internal directories.