api

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RPCToBackingImageList

func RPCToBackingImageList(obj *rpc.ListResponse) map[string]*BackingImage

Types

type BackingImage

type BackingImage struct {
	Name             string `json:"name"`
	UUID             string `json:"uuid"`
	Size             int64  `json:"size"`
	ExpectedChecksum string `json:"expectedChecksum"`

	Status BackingImageStatus `json:"status"`
}

func RPCToBackingImage

func RPCToBackingImage(obj *rpc.BackingImageResponse) *BackingImage

type BackingImageStatus

type BackingImageStatus struct {
	State                string `json:"state"`
	CurrentChecksum      string `json:"currentChecksum"`
	SendingReference     int    `json:"sendingReference"`
	ErrorMsg             string `json:"errorMsg"`
	SenderManagerAddress string `json:"senderManagerAddress"`
	Progress             int    `json:"progress"`
}

type BackingImageStream

type BackingImageStream struct {
	// contains filtered or unexported fields
}

func (*BackingImageStream) Close

func (s *BackingImageStream) Close() error

func (*BackingImageStream) Recv

func (s *BackingImageStream) Recv() error

type BackupStatus added in v1.6.0

type BackupStatus struct {
	Progress  int    `json:"progress"`
	BackupURL string `json:"backupURL"`
	ErrorMsg  string `json:"errorMsg"`
	State     string `json:"state"`
}

func RPCToBackupStatus added in v1.6.0

func RPCToBackupStatus(obj *rpc.BackupStatusResponse) *BackupStatus

type DataSourceInfo

type DataSourceInfo struct {
	SourceType string            `json:"sourceType"`
	Parameters map[string]string `json:"parameters"`

	Name string `json:"name"`

	FileInfo
}

func (*DataSourceInfo) DeepCopy

func (in *DataSourceInfo) DeepCopy() *DataSourceInfo

type FileInfo

type FileInfo struct {
	DiskUUID         string `json:"diskUUID"`
	ExpectedChecksum string `json:"expectedChecksum"`

	FilePath         string `json:"filePath"`
	UUID             string `json:"uuid"`
	Size             int64  `json:"size"`
	State            string `json:"state"`
	Progress         int    `json:"progress"`
	ProcessedSize    int64  `json:"processedSize"`
	ModificationTime string `json:"modificationTime"`
	CurrentChecksum  string `json:"currentChecksum"`
	Message          string `json:"message"`
	SendingReference int    `json:"sendingReference"`
}

Jump to

Keyboard shortcuts

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