Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is set at build time Version = "dev" // Commit is set at build time Commit = "unknown" // JSONOutput is set when --json flag is used JSONOutput bool )
Functions ¶
Types ¶
type BackupCreateOutput ¶ added in v0.3.0
type BackupCreateOutput struct {
Tool string `json:"tool"`
ConfigPath string `json:"configPath"`
BackupPath string `json:"backupPath"`
}
BackupCreateOutput represents the JSON output for backup create
type BackupInfo ¶ added in v0.3.0
type BackupInfo struct {
Tool string `json:"tool"`
ConfigPath string `json:"configPath"`
BackupPath string `json:"backupPath"`
Timestamp time.Time `json:"timestamp,omitempty"`
Size int64 `json:"size"`
}
BackupInfo represents information about a single backup
type BackupListOutput ¶ added in v0.3.0
type BackupListOutput struct {
Backups []BackupInfo `json:"backups"`
Total int `json:"total"`
}
BackupListOutput represents the JSON output for backup list
func (BackupListOutput) MarshalJSON ¶ added in v0.3.0
func (o BackupListOutput) MarshalJSON() ([]byte, error)
MarshalJSON for BackupListOutput to handle empty slices
type BackupRestoreOutput ¶ added in v0.3.0
type BackupRestoreOutput struct {
Tool string `json:"tool"`
ConfigPath string `json:"configPath"`
RestoredFrom string `json:"restoredFrom"`
}
BackupRestoreOutput represents the JSON output for backup restore
Click to show internal directories.
Click to hide internal directories.