Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreTarGzBackup ¶
func VerifyBackup ¶
func VerifyBackup(metadata BackupMetadata) error
Types ¶
type BackupMetadata ¶
type BackupMetadata struct { Date time.Time `json:"timestamp"` FileFormat string `json:"format"` FilePath string `json:"path"` Stores []string `json:"stores,omitempty"` Checksum Checksum `json:"checksum,omitempty"` Size int64 `json:"size,omitempty"` }
func NewTarGzBackup ¶
func (BackupMetadata) Format ¶
func (b BackupMetadata) Format() string
func (BackupMetadata) MarshalJSON ¶
func (b BackupMetadata) MarshalJSON() ([]byte, error)
func (BackupMetadata) Path ¶
func (b BackupMetadata) Path() string
func (BackupMetadata) Timestamp ¶
func (b BackupMetadata) Timestamp() time.Time
func (BackupMetadata) Type ¶
func (b BackupMetadata) Type() string
type TarGzBackup ¶
type TarGzBackup struct {
// contains filtered or unexported fields
}
func (*TarGzBackup) Format ¶
func (tgz *TarGzBackup) Format() string
func (*TarGzBackup) Metadata ¶
func (tgz *TarGzBackup) Metadata() BackupMetadata
Click to show internal directories.
Click to hide internal directories.