Documentation ¶
Index ¶
- type SAliyunHostDriver
- func (self *SAliyunHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SAliyunHostDriver) GetHostType() string
- func (self *SAliyunHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SAliyunHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, ...) error
- func (self *SAliyunHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SAliyunHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SAliyunHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAliyunHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAliyunHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- type SAwsHostDriver
- func (self *SAwsHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SAwsHostDriver) GetHostType() string
- func (self *SAwsHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SAwsHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, ...) error
- func (self *SAwsHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SAwsHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAwsHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAwsHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- type SAzureHostDriver
- func (self *SAzureHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SAzureHostDriver) GetHostType() string
- func (self *SAzureHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SAzureHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, ...) error
- func (self *SAzureHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SAzureHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SAzureHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAzureHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SAzureHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SBaseHostDriver
- func (self *SBaseHostDriver) CleanSchedCache(host *models.SHost) error
- func (self *SBaseHostDriver) ConvertFailed(host *models.SHost) error
- func (self *SBaseHostDriver) FinishConvert(userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, ...) error
- func (self *SBaseHostDriver) FinishUnconvert(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost) error
- func (self *SBaseHostDriver) GetRaidScheme(host *models.SHost, raid string) (string, error)
- func (self *SBaseHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*jsonutils.JSONDict, error)
- func (self *SBaseHostDriver) PrepareUnconvert(host *models.SHost) error
- func (self *SBaseHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SBaseHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SBaseHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SBaseHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SKVMHostDriver
- func (self *SKVMHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SKVMHostDriver) FinishUnconvert(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost) error
- func (self *SKVMHostDriver) GetHostType() string
- func (self *SKVMHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*jsonutils.JSONDict, error)
- func (self *SKVMHostDriver) PrepareUnconvert(host *models.SHost) error
- func (self *SKVMHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SKVMHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, ...) error
- func (self *SKVMHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SKVMHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SKVMHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SKVMHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SKVMHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SKVMHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- type SQcloudHostDriver
- func (self *SQcloudHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SQcloudHostDriver) GetHostType() string
- func (self *SQcloudHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SQcloudHostDriver) RequestDeallocateDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, ...) error
- func (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SQcloudHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SQcloudHostDriver) RequestResizeDiskOnHost(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SQcloudHostDriver) RequestResizeDiskOnHostOnline(host *models.SHost, storage *models.SStorage, disk *models.SDisk, size int64, ...) error
- func (self *SQcloudHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
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 (*SAliyunHostDriver) RequestDeallocateDiskOnHost ¶
func (*SAliyunHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SAliyunHostDriver) RequestResetDisk ¶
func (*SAliyunHostDriver) RequestResizeDiskOnHost ¶
func (*SAliyunHostDriver) RequestResizeDiskOnHostOnline ¶
func (*SAliyunHostDriver) RequestSaveUploadImageOnHost ¶
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 (*SAwsHostDriver) RequestDeallocateDiskOnHost ¶
func (*SAwsHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SAwsHostDriver) RequestResizeDiskOnHost ¶
func (*SAwsHostDriver) RequestResizeDiskOnHostOnline ¶
func (*SAwsHostDriver) RequestSaveUploadImageOnHost ¶
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 (*SAzureHostDriver) RequestDeallocateDiskOnHost ¶
func (*SAzureHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SAzureHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SAzureHostDriver) RequestResizeDiskOnHost ¶
func (*SAzureHostDriver) RequestResizeDiskOnHostOnline ¶
func (*SAzureHostDriver) RequestSaveUploadImageOnHost ¶
func (*SAzureHostDriver) ValidateUpdateDisk ¶
func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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 (*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 (*SBaseHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SBaseHostDriver) RequestResetDisk ¶
func (*SBaseHostDriver) ValidateUpdateDisk ¶
func (self *SBaseHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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 (*SKVMHostDriver) RequestCleanUpDiskSnapshots ¶
func (*SKVMHostDriver) RequestDeallocateDiskOnHost ¶
func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SKVMHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SKVMHostDriver) RequestResetDisk ¶
func (*SKVMHostDriver) RequestResizeDiskOnHost ¶
func (*SKVMHostDriver) RequestResizeDiskOnHostOnline ¶
func (*SKVMHostDriver) RequestSaveUploadImageOnHost ¶
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 (*SQcloudHostDriver) RequestDeallocateDiskOnHost ¶
func (*SQcloudHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SQcloudHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SQcloudHostDriver) RequestResizeDiskOnHost ¶
func (*SQcloudHostDriver) RequestResizeDiskOnHostOnline ¶
func (*SQcloudHostDriver) RequestSaveUploadImageOnHost ¶
Click to show internal directories.
Click to hide internal directories.