backingimage

package
v1.7.1-dev-20240811 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxExtentsBuffer = 1024
)

Variables

This section is empty.

Functions

func CreateBackupBackingImageMappings

func CreateBackupBackingImageMappings(backingImage *BackingImage) (*common.Mappings, error)

Types

type BackingImage

type BackingImage struct {
	Size       int64
	SectorSize int64
	Path       string
	Disk       enginetypes.DiffDisk
	Format     string

	Location []byte
}

func OpenBackingImage

func OpenBackingImage(path string) (*BackingImage, error)

func (*BackingImage) Close

func (bi *BackingImage) Close()

func (*BackingImage) Preload

func (bi *BackingImage) Preload() error

Preload populates bi.location with correct values

func (*BackingImage) ReadAt

func (bi *BackingImage) ReadAt(buf []byte, offset int64) (int, error)

type BackupStatus

type BackupStatus struct {
	Name         string
	BackingImage *BackingImage
	Error        string
	Progress     int
	BackupURL    string
	State        common.ProgressState
	IsOpened     bool
	// contains filtered or unexported fields
}

func NewBackupStatus

func NewBackupStatus(name string, backingImage *BackingImage) *BackupStatus

func (*BackupStatus) CloseFile

func (b *BackupStatus) CloseFile()

func (*BackupStatus) ReadFile

func (b *BackupStatus) ReadFile(start int64, data []byte) error

func (*BackupStatus) UpdateBackupProgress

func (b *BackupStatus) UpdateBackupProgress(state string, progress int, backupURL string, err string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL