Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandStatus ¶
type CommandStatus struct {
Success bool `json:"success"`
Time time.Time `json:"time"`
Error string `json:"error"`
}
CommandStatus is the last command status
type Profile ¶
type Profile struct {
Backup *CommandStatus `json:"backup,omitempty"`
Retention *CommandStatus `json:"retention,omitempty"`
Check *CommandStatus `json:"check,omitempty"`
}
Profile status
func (*Profile) BackupError ¶
BackupError sets the error of the last backup
func (*Profile) BackupSuccess ¶
BackupSuccess indicates the last backup was successful
func (*Profile) CheckError ¶
CheckError sets the error of the last check
func (*Profile) CheckSuccess ¶
CheckSuccess indicates the last check was successful
func (*Profile) RetentionError ¶
RetentionError sets the error of the last retention
func (*Profile) RetentionSuccess ¶
RetentionSuccess indicates the last retention was successful
type Status ¶
type Status struct {
Profiles map[string]*Profile `json:"profiles"`
// contains filtered or unexported fields
}
Status of last schedule profile
func (*Status) Load ¶
Load existing status; does not complain if the file does not exists, or is not readable
Click to show internal directories.
Click to hide internal directories.