hostdrivers

package
v2.3.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 17 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 SAwsHostDriver

type SAwsHostDriver struct {
	SBaseHostDriver
}

func (*SAwsHostDriver) CheckAndSetCacheImage

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

func (*SAwsHostDriver) GetHostType

func (self *SAwsHostDriver) GetHostType() string

func (*SAwsHostDriver) RequestAllocateDiskOnStorage

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

func (*SAwsHostDriver) RequestDeallocateDiskOnHost

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

func (*SAwsHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SAwsHostDriver) RequestResizeDiskOnHost

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

func (*SAwsHostDriver) RequestResizeDiskOnHostOnline

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

func (*SAwsHostDriver) RequestSaveUploadImageOnHost

func (self *SAwsHostDriver) 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) CleanSchedCache

func (self *SBaseHostDriver) CleanSchedCache(host *models.SHost) error

func (*SBaseHostDriver) ConvertFailed

func (self *SBaseHostDriver) ConvertFailed(host *models.SHost) error

func (*SBaseHostDriver) FinishConvert

func (self *SBaseHostDriver) FinishConvert(userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, hostType string) error

func (*SBaseHostDriver) FinishUnconvert

func (self *SBaseHostDriver) FinishUnconvert(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost) error

func (*SBaseHostDriver) GetRaidScheme

func (self *SBaseHostDriver) GetRaidScheme(host *models.SHost, raid string) (string, error)

func (*SBaseHostDriver) PrepareConvert

func (self *SBaseHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*jsonutils.JSONDict, error)

func (*SBaseHostDriver) PrepareUnconvert

func (self *SBaseHostDriver) PrepareUnconvert(host *models.SHost) error

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) FinishUnconvert

func (self *SKVMHostDriver) FinishUnconvert(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost) error

func (*SKVMHostDriver) GetHostType

func (self *SKVMHostDriver) GetHostType() string

func (*SKVMHostDriver) PrepareConvert

func (self *SKVMHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*jsonutils.JSONDict, error)

func (*SKVMHostDriver) PrepareUnconvert

func (self *SKVMHostDriver) PrepareUnconvert(host *models.SHost) error

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

type SQcloudHostDriver

type SQcloudHostDriver struct {
	SBaseHostDriver
}

func (*SQcloudHostDriver) CheckAndSetCacheImage

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

func (*SQcloudHostDriver) GetHostType

func (self *SQcloudHostDriver) GetHostType() string

func (*SQcloudHostDriver) RequestAllocateDiskOnStorage

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

func (*SQcloudHostDriver) RequestDeallocateDiskOnHost

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

func (*SQcloudHostDriver) RequestDeleteSnapshotWithStorage

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

func (*SQcloudHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SQcloudHostDriver) RequestResizeDiskOnHost

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

func (*SQcloudHostDriver) RequestResizeDiskOnHostOnline

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

func (*SQcloudHostDriver) RequestSaveUploadImageOnHost

func (self *SQcloudHostDriver) 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