client

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: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HTTPClientTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackingImageManagerClient

type BackingImageManagerClient struct {
	Address string
}

func NewBackingImageManagerClient

func NewBackingImageManagerClient(address string) *BackingImageManagerClient

func (*BackingImageManagerClient) BackupCreate added in v1.6.0

func (cli *BackingImageManagerClient) BackupCreate(name, uuid, checksum, backupTargetURL string, labels, credential map[string]string, compressionMethod string, concurrentLimit int) error

func (*BackingImageManagerClient) BackupStatus added in v1.6.0

func (cli *BackingImageManagerClient) BackupStatus(name string) (*api.BackupStatus, error)

func (*BackingImageManagerClient) Delete

func (cli *BackingImageManagerClient) Delete(name, uuid string) error

func (*BackingImageManagerClient) Fetch

func (cli *BackingImageManagerClient) Fetch(name, uuid, checksum, dataSourceAddress string, size int64) (*api.BackingImage, error)

func (*BackingImageManagerClient) Get

func (cli *BackingImageManagerClient) Get(name, uuid string) (*api.BackingImage, error)

func (*BackingImageManagerClient) List

func (*BackingImageManagerClient) PrepareDownload

func (cli *BackingImageManagerClient) PrepareDownload(name, uuid string) (string, string, error)

func (*BackingImageManagerClient) Send

func (cli *BackingImageManagerClient) Send(name, uuid, toAddress string) error

func (*BackingImageManagerClient) Sync

func (cli *BackingImageManagerClient) Sync(name, uuid, checksum, fromAddress string, size int64) (*api.BackingImage, error)

func (*BackingImageManagerClient) VersionGet

func (cli *BackingImageManagerClient) VersionGet() (*meta.VersionOutput, error)

func (*BackingImageManagerClient) Watch

type DataSourceClient

type DataSourceClient struct {
	Remote string
}

func (*DataSourceClient) Get

func (client *DataSourceClient) Get() (*api.DataSourceInfo, error)

func (*DataSourceClient) Transfer

func (client *DataSourceClient) Transfer() error

func (*DataSourceClient) Upload

func (client *DataSourceClient) Upload(filePath string) error

type SyncClient

type SyncClient struct {
	Remote string
}

func (*SyncClient) Delete

func (client *SyncClient) Delete(filePath string) error

func (*SyncClient) DownloadFromURL

func (client *SyncClient) DownloadFromURL(downloadURL, filePath, uuid, diskUUID, expectedChecksum string) error

func (*SyncClient) DownloadToDst

func (client *SyncClient) DownloadToDst(srcFilePath, dstFilePath string) error

func (*SyncClient) Fetch

func (client *SyncClient) Fetch(srcFilePath, dstFilePath, uuid, diskUUID, expectedChecksum string, size int64) error

func (*SyncClient) Forget

func (client *SyncClient) Forget(filePath string) error

func (*SyncClient) Get

func (client *SyncClient) Get(filePath string) (*api.FileInfo, error)

func (*SyncClient) List

func (client *SyncClient) List() (map[string]*api.FileInfo, error)

func (*SyncClient) Receive

func (client *SyncClient) Receive(filePath, uuid, diskUUID, expectedChecksum, fileType string, receiverPort int, size int64) error

func (*SyncClient) RestoreFromBackupURL added in v1.6.0

func (client *SyncClient) RestoreFromBackupURL(backupURL, concurrentLimit, filePath, uuid, diskUUID, expectedChecksum string, credential map[string]string) error

func (*SyncClient) Send

func (client *SyncClient) Send(filePath, toAddress string) error

func (*SyncClient) Upload

func (client *SyncClient) Upload(src, dst, uuid, diskUUID, expectedChecksum string) error

Jump to

Keyboard shortcuts

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