Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCommand ¶
HandleCommand is the entry point for backup commands
Types ¶
type BackupInfo ¶
type BackupInfo struct {
SiteName string
Version int
FileName string
LastModified string
Serial int
FilePath string
}
BackupInfo represents information about a backup file
type ConfigFileData ¶
type ConfigFileData struct {
Version int `json:"version"`
LastModified string `json:"last_modified,omitempty"`
Config map[string]SiteConfigData `json:"config"`
}
ConfigFileData represents the structure of a config file for parsing
type SiteConfigData ¶
type SiteConfigData struct {
SiteConfig map[string]interface{} `json:"site_config"`
LastModified string `json:"last_modified,omitempty"`
}
SiteConfigData represents a site configuration