Documentation ¶
Index ¶
- Constants
- type BackingImageManagerClient
- func (cli *BackingImageManagerClient) BackupCreate(name, uuid, checksum, backupTargetURL string, ...) error
- func (cli *BackingImageManagerClient) BackupStatus(name string) (*api.BackupStatus, error)
- func (cli *BackingImageManagerClient) Delete(name, uuid string) error
- func (cli *BackingImageManagerClient) Fetch(name, uuid, checksum, dataSourceAddress string, size int64) (*api.BackingImage, error)
- func (cli *BackingImageManagerClient) Get(name, uuid string) (*api.BackingImage, error)
- func (cli *BackingImageManagerClient) List() (map[string]*api.BackingImage, error)
- func (cli *BackingImageManagerClient) PrepareDownload(name, uuid string) (string, string, error)
- func (cli *BackingImageManagerClient) Send(name, uuid, toAddress string) error
- func (cli *BackingImageManagerClient) Sync(name, uuid, checksum, fromAddress string, size int64) (*api.BackingImage, error)
- func (cli *BackingImageManagerClient) VersionGet() (*meta.VersionOutput, error)
- func (cli *BackingImageManagerClient) Watch() (*api.BackingImageStream, error)
- type DataSourceClient
- type SyncClient
- func (client *SyncClient) CloneFromBackingImage(...) error
- func (client *SyncClient) Delete(filePath string) error
- func (client *SyncClient) DownloadFromURL(downloadURL, filePath, uuid, diskUUID, expectedChecksum string) error
- func (client *SyncClient) DownloadToDst(srcFilePath, dstFilePath string) error
- func (client *SyncClient) Fetch(srcFilePath, dstFilePath, uuid, diskUUID, expectedChecksum string, size int64) error
- func (client *SyncClient) Forget(filePath string) error
- func (client *SyncClient) Get(filePath string) (*api.FileInfo, error)
- func (client *SyncClient) List() (map[string]*api.FileInfo, error)
- func (client *SyncClient) Receive(filePath, uuid, diskUUID, expectedChecksum, fileType string, receiverPort int, ...) error
- func (client *SyncClient) RestoreFromBackupURL(backupURL, concurrentLimit, filePath, uuid, diskUUID, expectedChecksum string, ...) error
- func (client *SyncClient) Send(filePath, toAddress string) error
- func (client *SyncClient) Upload(src, dst, uuid, diskUUID, expectedChecksum string) error
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 (*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 (cli *BackingImageManagerClient) List() (map[string]*api.BackingImage, error)
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 ¶
func (cli *BackingImageManagerClient) Watch() (*api.BackingImageStream, error)
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) CloneFromBackingImage ¶ added in v1.7.0
func (client *SyncClient) CloneFromBackingImage(sourceBackingImage, sourceBackingImageUUID, encryption, filePath, uuid, diskUUID, expectedChecksum string, credential map[string]string) error
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) 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
Click to show internal directories.
Click to hide internal directories.