Documentation ¶
Index ¶
- Constants
- func CreateBackingImageBackup(config *BackupConfig, backupBackingImage *BackupBackingImage, ...) (err error)
- func DecodeBackupBackingImageURL(backupURL string) (string, string, error)
- func EncodeBackupBackingImageURL(backingImageName, destURL string) string
- func GetAllBackupBackingImageNames(driver backupstore.BackupStoreDriver) ([]string, error)
- func RemoveBackingImageBackup(backupURL string) (err error)
- func RestoreBackingImageBackup(config *RestoreConfig, restoreOperation RestoreOperation) error
- type BackupBackingImage
- type BackupConfig
- type BackupInfo
- type BackupOperation
- type RestoreConfig
- type RestoreOperation
Constants ¶
View Source
const ( BackingImageBlockSeparateLayer1 = 2 BackingImageBlockSeparateLayer2 = 4 BackingImageDirectory = "backing-images" BackingImageConfigFile = "backing-image.cfg" BlocksDirectory = "blocks" BlkSuffix = ".blk" )
View Source
const (
BackingImageLogType = "BackingImage"
)
Variables ¶
This section is empty.
Functions ¶
func CreateBackingImageBackup ¶
func CreateBackingImageBackup(config *BackupConfig, backupBackingImage *BackupBackingImage, backupOperation BackupOperation, mappings *common.Mappings) (err error)
func GetAllBackupBackingImageNames ¶
func GetAllBackupBackingImageNames(driver backupstore.BackupStoreDriver) ([]string, error)
func RestoreBackingImageBackup ¶
func RestoreBackingImageBackup(config *RestoreConfig, restoreOperation RestoreOperation) error
Types ¶
type BackupBackingImage ¶
type BackupBackingImage struct { sync.Mutex Name string Size int64 `json:",string"` BlockCount int64 `json:",string"` Checksum string Labels map[string]string CompressionMethod string CreatedTime string CompleteTime string Secret string SecretNamespace string ProcessingBlocks *common.ProcessingBlocks Blocks []common.BlockMapping `json:",omitempty"` }
type BackupConfig ¶
type BackupInfo ¶
type BackupInfo struct { Name string URL string CompleteAt string Size int64 `json:",string"` Checksum string Labels map[string]string CompressionMethod string `json:",omitempty"` Secret string SecretNamespace string }
func InspectBackupBackingImage ¶
func InspectBackupBackingImage(backupURL string) (*BackupInfo, error)
type BackupOperation ¶
type RestoreConfig ¶
type RestoreOperation ¶
Click to show internal directories.
Click to hide internal directories.