Documentation ¶
Index ¶
- Constants
- func NewServer(parentCtx context.Context, ...) error
- func ParsePortRange(portRange string) (int32, int32, error)
- type BackupInfo
- type BackupList
- type Manager
- func (m *Manager) BackupCreate(ctx context.Context, req *rpc.BackupCreateRequest) (resp *empty.Empty, err error)
- func (m *Manager) BackupStatus(ctx context.Context, req *rpc.BackupStatusRequest) (resp *rpc.BackupStatusResponse, err error)
- func (m *Manager) Delete(ctx context.Context, req *rpc.DeleteRequest) (resp *emptypb.Empty, err error)
- func (m *Manager) Fetch(ctx context.Context, req *rpc.FetchRequest) (resp *rpc.BackingImageResponse, err error)
- func (m *Manager) Get(ctx context.Context, req *rpc.GetRequest) (*rpc.BackingImageResponse, error)
- func (m *Manager) List(ctx context.Context, req *emptypb.Empty) (*rpc.ListResponse, error)
- func (m *Manager) PrepareDownload(ctx context.Context, req *rpc.PrepareDownloadRequest) (resp *rpc.PrepareDownloadResponse, err error)
- func (m *Manager) Send(ctx context.Context, req *rpc.SendRequest) (resp *emptypb.Empty, err error)
- func (m *Manager) Subscribe() (<-chan interface{}, error)
- func (m *Manager) Sync(ctx context.Context, req *rpc.SyncRequest) (resp *rpc.BackingImageResponse, err error)
- func (pm *Manager) VersionGet(ctx context.Context, empty *emptypb.Empty) (*rpc.VersionResponse, error)
- func (m *Manager) Watch(req *emptypb.Empty, srv rpc.BackingImageManagerService_WatchServer) (err error)
Constants ¶
View Source
const (
MaxBackupSize = 5
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackupInfo ¶ added in v1.6.0
type BackupInfo struct {
// contains filtered or unexported fields
}
type BackupList ¶ added in v1.6.0
func (*BackupList) BackupAdd ¶ added in v1.6.0
func (b *BackupList) BackupAdd(backupID string, BackupStatus *backingimage.BackupStatus) error
BackupAdd creates a new backupList object and appends to the end of the list maintained by backup object
func (*BackupList) BackupGet ¶ added in v1.6.0
func (b *BackupList) BackupGet(backupID string) (*backingimage.BackupStatus, error)
BackupGet takes backupID input and will return the backup object corresponding to that backupID or error if not found
type Manager ¶
type Manager struct { rpc.UnimplementedBackingImageManagerServiceServer BackupList *BackupList // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) BackupCreate ¶ added in v1.6.0
func (*Manager) BackupStatus ¶ added in v1.6.0
func (m *Manager) BackupStatus(ctx context.Context, req *rpc.BackupStatusRequest) (resp *rpc.BackupStatusResponse, err error)
func (*Manager) Fetch ¶
func (m *Manager) Fetch(ctx context.Context, req *rpc.FetchRequest) (resp *rpc.BackingImageResponse, err error)
func (*Manager) Get ¶
func (m *Manager) Get(ctx context.Context, req *rpc.GetRequest) (*rpc.BackingImageResponse, error)
func (*Manager) PrepareDownload ¶
func (m *Manager) PrepareDownload(ctx context.Context, req *rpc.PrepareDownloadRequest) (resp *rpc.PrepareDownloadResponse, err error)
func (*Manager) Sync ¶
func (m *Manager) Sync(ctx context.Context, req *rpc.SyncRequest) (resp *rpc.BackingImageResponse, err error)
func (*Manager) VersionGet ¶
Click to show internal directories.
Click to hide internal directories.