Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreTarGzBackup ¶ added in v0.4.2
func VerifyBackup ¶ added in v0.4.2
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 (bm BackupMetadata) Format() string
func (BackupMetadata) MarshalJSON ¶ added in v0.4.2
func (bm BackupMetadata) MarshalJSON() ([]byte, error)
func (BackupMetadata) Path ¶
func (bm BackupMetadata) Path() string
func (BackupMetadata) Timestamp ¶
func (bm BackupMetadata) Timestamp() time.Time
func (BackupMetadata) Type ¶ added in v0.4.2
func (bm 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.