hostdrivers

package
v2.2.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SAliyunHostDriver

type SAliyunHostDriver struct {
	SBaseHostDriver
}

func (*SAliyunHostDriver) CheckAndSetCacheImage

func (self *SAliyunHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error

func (*SAliyunHostDriver) GetHostType

func (self *SAliyunHostDriver) GetHostType() string

func (*SAliyunHostDriver) RequestAllocateDiskOnStorage

func (self *SAliyunHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, content *jsonutils.JSONDict) error

func (*SAliyunHostDriver) RequestDeallocateDiskOnHost

func (self *SAliyunHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask) error

func (*SAliyunHostDriver) RequestPrepareSaveDiskOnHost

func (self *SAliyunHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask) error

func (*SAliyunHostDriver) RequestResetDisk

func (self *SAliyunHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

func (*SAliyunHostDriver) RequestResizeDiskOnHost

func (self *SAliyunHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SAliyunHostDriver) RequestResizeDiskOnHostOnline

func (self *SAliyunHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SAliyunHostDriver) RequestSaveUploadImageOnHost

func (self *SAliyunHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask, data jsonutils.JSONObject) error

type SAzureHostDriver

type SAzureHostDriver struct {
	SBaseHostDriver
}

func (*SAzureHostDriver) CheckAndSetCacheImage

func (self *SAzureHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error

func (*SAzureHostDriver) GetHostType

func (self *SAzureHostDriver) GetHostType() string

func (*SAzureHostDriver) RequestAllocateDiskOnStorage

func (self *SAzureHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, content *jsonutils.JSONDict) error

func (*SAzureHostDriver) RequestDeallocateDiskOnHost

func (self *SAzureHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask) error

func (*SAzureHostDriver) RequestDeleteSnapshotWithStorage

func (self *SAzureHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

func (*SAzureHostDriver) RequestPrepareSaveDiskOnHost

func (self *SAzureHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask) error

func (*SAzureHostDriver) RequestResizeDiskOnHost

func (self *SAzureHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SAzureHostDriver) RequestResizeDiskOnHostOnline

func (self *SAzureHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SAzureHostDriver) RequestSaveUploadImageOnHost

func (self *SAzureHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask, data jsonutils.JSONObject) error

type SBaseHostDriver

type SBaseHostDriver struct {
}

func (*SBaseHostDriver) RequestCleanUpDiskSnapshots

func (self *SBaseHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

func (*SBaseHostDriver) RequestDeleteSnapshotsWithStorage

func (self *SBaseHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

func (*SBaseHostDriver) RequestResetDisk

func (self *SBaseHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

type SKVMHostDriver

type SKVMHostDriver struct {
	SBaseHostDriver
}

func (*SKVMHostDriver) CheckAndSetCacheImage

func (self *SKVMHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error

func (*SKVMHostDriver) GetHostType

func (self *SKVMHostDriver) GetHostType() string

func (*SKVMHostDriver) RequestAllocateDiskOnStorage

func (self *SKVMHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, content *jsonutils.JSONDict) error

func (*SKVMHostDriver) RequestCleanUpDiskSnapshots

func (self *SKVMHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

func (*SKVMHostDriver) RequestDeallocateDiskOnHost

func (self *SKVMHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask) error

func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage

func (self *SKVMHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

func (*SKVMHostDriver) RequestPrepareSaveDiskOnHost

func (self *SKVMHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask) error

func (*SKVMHostDriver) RequestResetDisk

func (self *SKVMHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

func (*SKVMHostDriver) RequestResizeDiskOnHost

func (self *SKVMHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SKVMHostDriver) RequestResizeDiskOnHostOnline

func (self *SKVMHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, task taskman.ITask) error

func (*SKVMHostDriver) RequestSaveUploadImageOnHost

func (self *SKVMHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, task taskman.ITask, data jsonutils.JSONObject) error

Jump to

Keyboard shortcuts

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