Documentation ¶
Index ¶
- type SAliyunHostDriver
- func (self *SAliyunHostDriver) GetHostType() string
- func (self *SAliyunHostDriver) GetHypervisor() string
- func (self *SAliyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SAliyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SApsaraHostDriver
- type SAwsHostDriver
- func (self *SAwsHostDriver) GetHostType() string
- func (self *SAwsHostDriver) GetHypervisor() string
- func (self *SAwsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SAwsHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SAzureHostDriver
- func (self *SAzureHostDriver) GetHostType() string
- func (self *SAzureHostDriver) GetHypervisor() string
- func (self *SAzureHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SAzureHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SAzureHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.DiskUpdateInput, error)
- type SBaremetalHostDriver
- func (self *SBaremetalHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SBaremetalHostDriver) GetHostType() string
- func (self *SBaremetalHostDriver) GetHypervisor() string
- func (self *SBaremetalHostDriver) IsDisableImageCache(host *models.SHost) (bool, error)
- func (self *SBaremetalHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SBaremetalHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SBaremetalHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SBaremetalHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SBaremetalHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SBaremetalHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SBaremetalHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) 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 (driver *SBaseHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (driver *SBaseHostDriver) IsReachStoragecacheCapacityLimit(host *models.SHost, cachedImages []models.SCachedimage) bool
- func (self *SBaseHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*api.ServerCreateInput, error)
- func (self *SBaseHostDriver) PrepareUnconvert(host *models.SHost) error
- func (self *SBaseHostDriver) RequestAttachStorage(ctx context.Context, hoststorage *models.SHoststorage, host *models.SHost, ...) error
- func (self *SBaseHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (driver *SBaseHostDriver) RequestDeallocateBackupDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SBaseHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SBaseHostDriver) RequestDetachStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (driver *SBaseHostDriver) RequestProbeIsolatedDevices(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) (*jsonutils.JSONArray, error)
- func (self *SBaseHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (driver *SBaseHostDriver) RequestSyncOnHost(ctx context.Context, host *models.SHost, task taskman.ITask) error
- func (self *SBaseHostDriver) ValidateAttachStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) (api.HostStorageCreateInput, error)
- func (self *SBaseHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SBaseHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- func (self *SBaseHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (api.DiskUpdateInput, error)
- type SBingoCloudHostDriver
- type SCloudpodsHostDriver
- type SCtyunHostDriver
- func (self *SCtyunHostDriver) GetHostType() string
- func (self *SCtyunHostDriver) GetHypervisor() string
- func (self *SCtyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SCtyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SESXiHostDriver
- func (self *SESXiHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SESXiHostDriver) GetHostType() string
- func (self *SESXiHostDriver) GetHypervisor() string
- func (self *SESXiHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SESXiHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SESXiHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SESXiHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SESXiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SEcloudHostDriver
- type SGoogleHostDriver
- func (self *SGoogleHostDriver) GetHostType() string
- func (self *SGoogleHostDriver) GetHypervisor() string
- func (self *SGoogleHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SGoogleHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SHCSHostDriver
- func (self *SHCSHostDriver) GetHostType() string
- func (self *SHCSHostDriver) GetHypervisor() string
- func (self *SHCSHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHCSHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SHCSOHostDriver
- func (self *SHCSOHostDriver) GetHostType() string
- func (self *SHCSOHostDriver) GetHypervisor() string
- func (self *SHCSOHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHCSOHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SHuaweiHostDriver
- func (self *SHuaweiHostDriver) GetHostType() string
- func (self *SHuaweiHostDriver) GetHypervisor() string
- func (self *SHuaweiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHuaweiHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SInCloudSphereHostDriver
- func (self *SInCloudSphereHostDriver) GetHostType() string
- func (self *SInCloudSphereHostDriver) GetHypervisor() string
- func (self *SInCloudSphereHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SInCloudSphereHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SInCloudSphereHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SJDcloudHostDriver
- func (self *SJDcloudHostDriver) GetHostType() string
- func (self *SJDcloudHostDriver) GetHypervisor() string
- func (self *SJDcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SJDcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*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) GetHypervisor() string
- func (self *SKVMHostDriver) GetJsonFromHost(ctx context.Context, host *models.SHost) *jsonutils.JSONDict
- func (self *SKVMHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*api.ServerCreateInput, error)
- func (self *SKVMHostDriver) PrepareUnconvert(host *models.SHost) error
- func (self *SKVMHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SKVMHostDriver) RequestAttachStorage(ctx context.Context, hoststorage *models.SHoststorage, host *models.SHost, ...) error
- func (self *SKVMHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (driver *SKVMHostDriver) RequestDeallocateBackupDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestDeleteSnapshotsWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SKVMHostDriver) RequestDetachStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (driver *SKVMHostDriver) RequestProbeIsolatedDevices(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) (*jsonutils.JSONArray, error)
- func (self *SKVMHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SKVMHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SKVMHostDriver) RequestSyncOnHost(ctx context.Context, host *models.SHost, task taskman.ITask) error
- func (self *SKVMHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SKVMHostDriver) ValidateAttachStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) (api.HostStorageCreateInput, error)
- func (self *SKVMHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SKVMHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SManagedVirtualizationHostDriver
- func (self *SManagedVirtualizationHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (driver *SManagedVirtualizationHostDriver) IsReachStoragecacheCapacityLimit(host *models.SHost, cachedImages []models.SCachedimage) bool
- func (self *SManagedVirtualizationHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestPrepareSaveDiskOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestSaveUploadImageOnHost(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- func (self *SManagedVirtualizationHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, ...) error
- func (self *SManagedVirtualizationHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SNutanixHostDriver
- type SOpenStackHostDriver
- func (self *SOpenStackHostDriver) GetHostType() string
- func (self *SOpenStackHostDriver) GetHypervisor() string
- func (driver *SOpenStackHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SOpenStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SOpenStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SProxmoxHostDriver
- type SQcloudHostDriver
- func (self *SQcloudHostDriver) GetHostType() string
- func (self *SQcloudHostDriver) GetHypervisor() string
- func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SQcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SQcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SRemoteFileDriver
- type SUCloudHostDriver
- func (self *SUCloudHostDriver) GetHostType() string
- func (self *SUCloudHostDriver) GetHypervisor() string
- func (self *SUCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SUCloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
- type SVirtualizationHostDriver
- type SZStackHostDriver
- func (self *SZStackHostDriver) GetHostType() string
- func (self *SZStackHostDriver) GetHypervisor() string
- func (self *SZStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SZStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*jsonutils.JSONDict, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SAliyunHostDriver ¶
type SAliyunHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SAliyunHostDriver) GetHostType ¶
func (self *SAliyunHostDriver) GetHostType() string
func (*SAliyunHostDriver) GetHypervisor ¶
func (self *SAliyunHostDriver) GetHypervisor() string
func (*SAliyunHostDriver) ValidateDiskSize ¶
func (self *SAliyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SApsaraHostDriver ¶
type SApsaraHostDriver struct {
SAliyunHostDriver
}
func (*SApsaraHostDriver) GetHostType ¶
func (self *SApsaraHostDriver) GetHostType() string
func (*SApsaraHostDriver) GetHypervisor ¶
func (self *SApsaraHostDriver) GetHypervisor() string
type SAwsHostDriver ¶
type SAwsHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SAwsHostDriver) GetHostType ¶
func (self *SAwsHostDriver) GetHostType() string
func (*SAwsHostDriver) GetHypervisor ¶
func (self *SAwsHostDriver) GetHypervisor() string
func (*SAwsHostDriver) ValidateDiskSize ¶
func (self *SAwsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SAzureHostDriver ¶
type SAzureHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SAzureHostDriver) GetHostType ¶
func (self *SAzureHostDriver) GetHostType() string
func (*SAzureHostDriver) GetHypervisor ¶
func (self *SAzureHostDriver) GetHypervisor() string
func (*SAzureHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SAzureHostDriver) ValidateDiskSize ¶
func (self *SAzureHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SAzureHostDriver) ValidateResetDisk ¶
func (*SAzureHostDriver) ValidateUpdateDisk ¶
func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, input api.DiskUpdateInput) (api.DiskUpdateInput, error)
type SBaremetalHostDriver ¶
type SBaremetalHostDriver struct {
SBaseHostDriver
}
func (*SBaremetalHostDriver) CheckAndSetCacheImage ¶
func (self *SBaremetalHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SBaremetalHostDriver) GetHostType ¶
func (self *SBaremetalHostDriver) GetHostType() string
func (*SBaremetalHostDriver) GetHypervisor ¶
func (self *SBaremetalHostDriver) GetHypervisor() string
func (*SBaremetalHostDriver) IsDisableImageCache ¶
func (self *SBaremetalHostDriver) IsDisableImageCache(host *models.SHost) (bool, error)
func (*SBaremetalHostDriver) RequestAllocateDiskOnStorage ¶
func (*SBaremetalHostDriver) RequestDeallocateDiskOnHost ¶
func (*SBaremetalHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SBaremetalHostDriver) RequestRebuildDiskOnStorage ¶
func (*SBaremetalHostDriver) RequestResizeDiskOnHost ¶
func (*SBaremetalHostDriver) RequestSaveUploadImageOnHost ¶
func (*SBaremetalHostDriver) RequestUncacheImage ¶
func (self *SBaremetalHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) 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) GetStoragecacheQuota ¶
func (driver *SBaseHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SBaseHostDriver) IsReachStoragecacheCapacityLimit ¶
func (driver *SBaseHostDriver) IsReachStoragecacheCapacityLimit(host *models.SHost, cachedImages []models.SCachedimage) bool
func (*SBaseHostDriver) PrepareConvert ¶
func (self *SBaseHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*api.ServerCreateInput, error)
func (*SBaseHostDriver) PrepareUnconvert ¶
func (self *SBaseHostDriver) PrepareUnconvert(host *models.SHost) error
func (*SBaseHostDriver) RequestAttachStorage ¶
func (*SBaseHostDriver) RequestCleanUpDiskSnapshots ¶
func (*SBaseHostDriver) RequestDeallocateBackupDiskOnHost ¶
func (*SBaseHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SBaseHostDriver) RequestDetachStorage ¶
func (*SBaseHostDriver) RequestProbeIsolatedDevices ¶
func (driver *SBaseHostDriver) RequestProbeIsolatedDevices(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, input jsonutils.JSONObject) (*jsonutils.JSONArray, error)
func (*SBaseHostDriver) RequestResetDisk ¶
func (*SBaseHostDriver) RequestSyncOnHost ¶
func (*SBaseHostDriver) ValidateAttachStorage ¶
func (self *SBaseHostDriver) ValidateAttachStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, input api.HostStorageCreateInput) (api.HostStorageCreateInput, error)
func (*SBaseHostDriver) ValidateDiskSize ¶
func (self *SBaseHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SBaseHostDriver) ValidateResetDisk ¶
func (*SBaseHostDriver) ValidateUpdateDisk ¶
func (self *SBaseHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, input api.DiskUpdateInput) (api.DiskUpdateInput, error)
type SBingoCloudHostDriver ¶
type SBingoCloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SBingoCloudHostDriver) GetHostType ¶
func (self *SBingoCloudHostDriver) GetHostType() string
func (*SBingoCloudHostDriver) GetHypervisor ¶
func (self *SBingoCloudHostDriver) GetHypervisor() string
func (*SBingoCloudHostDriver) GetStoragecacheQuota ¶
func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SBingoCloudHostDriver) ValidateDiskSize ¶
func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SCloudpodsHostDriver ¶
type SCloudpodsHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCloudpodsHostDriver) GetHostType ¶
func (self *SCloudpodsHostDriver) GetHostType() string
func (*SCloudpodsHostDriver) GetHypervisor ¶
func (self *SCloudpodsHostDriver) GetHypervisor() string
func (*SCloudpodsHostDriver) GetStoragecacheQuota ¶
func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SCloudpodsHostDriver) ValidateDiskSize ¶
func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SCtyunHostDriver ¶
type SCtyunHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCtyunHostDriver) GetHostType ¶
func (self *SCtyunHostDriver) GetHostType() string
func (*SCtyunHostDriver) GetHypervisor ¶
func (self *SCtyunHostDriver) GetHypervisor() string
func (*SCtyunHostDriver) ValidateDiskSize ¶
func (self *SCtyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
type SESXiHostDriver ¶
type SESXiHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SESXiHostDriver) CheckAndSetCacheImage ¶
func (self *SESXiHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SESXiHostDriver) GetHostType ¶
func (self *SESXiHostDriver) GetHostType() string
func (*SESXiHostDriver) GetHypervisor ¶
func (self *SESXiHostDriver) GetHypervisor() string
func (*SESXiHostDriver) RequestAllocateDiskOnStorage ¶
func (*SESXiHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SESXiHostDriver) RequestResizeDiskOnHost ¶
func (*SESXiHostDriver) RequestSaveUploadImageOnHost ¶
func (*SESXiHostDriver) ValidateDiskSize ¶
func (self *SESXiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SEcloudHostDriver ¶
type SEcloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SEcloudHostDriver) GetHostType ¶
func (d *SEcloudHostDriver) GetHostType() string
func (*SEcloudHostDriver) GetHypervisor ¶
func (d *SEcloudHostDriver) GetHypervisor() string
type SGoogleHostDriver ¶
type SGoogleHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SGoogleHostDriver) GetHostType ¶
func (self *SGoogleHostDriver) GetHostType() string
func (*SGoogleHostDriver) GetHypervisor ¶
func (self *SGoogleHostDriver) GetHypervisor() string
func (*SGoogleHostDriver) ValidateDiskSize ¶
func (self *SGoogleHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SHCSHostDriver ¶
type SHCSHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHCSHostDriver) GetHostType ¶
func (self *SHCSHostDriver) GetHostType() string
func (*SHCSHostDriver) GetHypervisor ¶
func (self *SHCSHostDriver) GetHypervisor() string
func (*SHCSHostDriver) ValidateDiskSize ¶
func (self *SHCSHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
type SHCSOHostDriver ¶
type SHCSOHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHCSOHostDriver) GetHostType ¶
func (self *SHCSOHostDriver) GetHostType() string
func (*SHCSOHostDriver) GetHypervisor ¶
func (self *SHCSOHostDriver) GetHypervisor() string
func (*SHCSOHostDriver) ValidateDiskSize ¶
func (self *SHCSOHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
type SHuaweiHostDriver ¶
type SHuaweiHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHuaweiHostDriver) GetHostType ¶
func (self *SHuaweiHostDriver) GetHostType() string
func (*SHuaweiHostDriver) GetHypervisor ¶
func (self *SHuaweiHostDriver) GetHypervisor() string
func (*SHuaweiHostDriver) ValidateDiskSize ¶
func (self *SHuaweiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
type SInCloudSphereHostDriver ¶
type SInCloudSphereHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SInCloudSphereHostDriver) GetHostType ¶
func (self *SInCloudSphereHostDriver) GetHostType() string
func (*SInCloudSphereHostDriver) GetHypervisor ¶
func (self *SInCloudSphereHostDriver) GetHypervisor() string
func (*SInCloudSphereHostDriver) GetStoragecacheQuota ¶
func (self *SInCloudSphereHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SInCloudSphereHostDriver) ValidateDiskSize ¶
func (self *SInCloudSphereHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SJDcloudHostDriver ¶
type SJDcloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SJDcloudHostDriver) GetHostType ¶
func (self *SJDcloudHostDriver) GetHostType() string
func (*SJDcloudHostDriver) GetHypervisor ¶
func (self *SJDcloudHostDriver) GetHypervisor() string
func (*SJDcloudHostDriver) ValidateDiskSize ¶
func (self *SJDcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
ValidateDiskSize 云硬盘大小,单位为 GiB;ssd.io1 类型取值范围[20,16000]GB,步长为10G; ssd.gp1 类型取值范围[20,16000]GB,步长为10G; hdd.std1 类型取值范围[20,16000]GB,步长为10G
系统盘: local:不能指定大小,默认为40GB cloud:取值范围: [40,500]GB,并且不能小于镜像的最小系统盘大小,如果没有指定,默认以镜像中的系统盘大小为准
func (*SJDcloudHostDriver) ValidateResetDisk ¶
func (self *SJDcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
ValidateResetDisk 仅可用状态的云硬盘支持恢复 卸载硬盘需要停止云主机
type SKVMHostDriver ¶
type SKVMHostDriver struct {
SVirtualizationHostDriver
}
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) GetHypervisor ¶
func (self *SKVMHostDriver) GetHypervisor() string
func (*SKVMHostDriver) GetJsonFromHost ¶
func (*SKVMHostDriver) PrepareConvert ¶
func (self *SKVMHostDriver) PrepareConvert(host *models.SHost, image, raid string, data jsonutils.JSONObject) (*api.ServerCreateInput, error)
func (*SKVMHostDriver) PrepareUnconvert ¶
func (self *SKVMHostDriver) PrepareUnconvert(host *models.SHost) error
func (*SKVMHostDriver) RequestAllocateDiskOnStorage ¶
func (*SKVMHostDriver) RequestAttachStorage ¶
func (*SKVMHostDriver) RequestCleanUpDiskSnapshots ¶
func (*SKVMHostDriver) RequestDeallocateBackupDiskOnHost ¶
func (*SKVMHostDriver) RequestDeallocateDiskOnHost ¶
func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SKVMHostDriver) RequestDetachStorage ¶
func (*SKVMHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SKVMHostDriver) RequestProbeIsolatedDevices ¶
func (driver *SKVMHostDriver) RequestProbeIsolatedDevices(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, input jsonutils.JSONObject) (*jsonutils.JSONArray, error)
func (*SKVMHostDriver) RequestRebuildDiskOnStorage ¶
func (*SKVMHostDriver) RequestResetDisk ¶
func (*SKVMHostDriver) RequestResizeDiskOnHost ¶
func (*SKVMHostDriver) RequestSaveUploadImageOnHost ¶
func (*SKVMHostDriver) RequestSyncOnHost ¶
func (*SKVMHostDriver) RequestUncacheImage ¶
func (self *SKVMHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SKVMHostDriver) ValidateAttachStorage ¶
func (self *SKVMHostDriver) ValidateAttachStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, input api.HostStorageCreateInput) (api.HostStorageCreateInput, error)
func (*SKVMHostDriver) ValidateDiskSize ¶
func (self *SKVMHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SManagedVirtualizationHostDriver ¶
type SManagedVirtualizationHostDriver struct {
SVirtualizationHostDriver
}
func (*SManagedVirtualizationHostDriver) CheckAndSetCacheImage ¶
func (self *SManagedVirtualizationHostDriver) CheckAndSetCacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SManagedVirtualizationHostDriver) IsReachStoragecacheCapacityLimit ¶
func (driver *SManagedVirtualizationHostDriver) IsReachStoragecacheCapacityLimit(host *models.SHost, cachedImages []models.SCachedimage) bool
func (*SManagedVirtualizationHostDriver) RequestAllocateDiskOnStorage ¶
func (*SManagedVirtualizationHostDriver) RequestDeallocateDiskOnHost ¶
func (*SManagedVirtualizationHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SManagedVirtualizationHostDriver) RequestRebuildDiskOnStorage ¶
func (*SManagedVirtualizationHostDriver) RequestResetDisk ¶
func (*SManagedVirtualizationHostDriver) RequestResizeDiskOnHost ¶
func (*SManagedVirtualizationHostDriver) RequestSaveUploadImageOnHost ¶
func (*SManagedVirtualizationHostDriver) RequestUncacheImage ¶
func (self *SManagedVirtualizationHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SManagedVirtualizationHostDriver) ValidateResetDisk ¶
type SNutanixHostDriver ¶
type SNutanixHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SNutanixHostDriver) GetHostType ¶
func (self *SNutanixHostDriver) GetHostType() string
func (*SNutanixHostDriver) GetHypervisor ¶
func (self *SNutanixHostDriver) GetHypervisor() string
func (*SNutanixHostDriver) GetStoragecacheQuota ¶
func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SNutanixHostDriver) ValidateDiskSize ¶
func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SOpenStackHostDriver ¶
type SOpenStackHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SOpenStackHostDriver) GetHostType ¶
func (self *SOpenStackHostDriver) GetHostType() string
func (*SOpenStackHostDriver) GetHypervisor ¶
func (self *SOpenStackHostDriver) GetHypervisor() string
func (*SOpenStackHostDriver) GetStoragecacheQuota ¶
func (driver *SOpenStackHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SOpenStackHostDriver) ValidateDiskSize ¶
func (self *SOpenStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SProxmoxHostDriver ¶
type SProxmoxHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SProxmoxHostDriver) GetHostType ¶
func (self *SProxmoxHostDriver) GetHostType() string
func (*SProxmoxHostDriver) GetHypervisor ¶
func (self *SProxmoxHostDriver) GetHypervisor() string
func (*SProxmoxHostDriver) GetStoragecacheQuota ¶
func (driver *SProxmoxHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SProxmoxHostDriver) ValidateDiskSize ¶
func (self *SProxmoxHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SQcloudHostDriver ¶
type SQcloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SQcloudHostDriver) GetHostType ¶
func (self *SQcloudHostDriver) GetHostType() string
func (*SQcloudHostDriver) GetHypervisor ¶
func (self *SQcloudHostDriver) GetHypervisor() string
func (*SQcloudHostDriver) GetStoragecacheQuota ¶
func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SQcloudHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SQcloudHostDriver) ValidateDiskSize ¶
func (self *SQcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SRemoteFileDriver ¶
type SRemoteFileDriver struct {
SManagedVirtualizationHostDriver
}
func (*SRemoteFileDriver) GetHostType ¶
func (self *SRemoteFileDriver) GetHostType() string
func (*SRemoteFileDriver) GetHypervisor ¶
func (self *SRemoteFileDriver) GetHypervisor() string
func (*SRemoteFileDriver) GetStoragecacheQuota ¶
func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SRemoteFileDriver) ValidateDiskSize ¶
func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SUCloudHostDriver ¶
type SUCloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SUCloudHostDriver) GetHostType ¶
func (self *SUCloudHostDriver) GetHostType() string
func (*SUCloudHostDriver) GetHypervisor ¶
func (self *SUCloudHostDriver) GetHypervisor() string
func (*SUCloudHostDriver) ValidateDiskSize ¶
func (self *SUCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SVirtualizationHostDriver ¶
type SVirtualizationHostDriver struct {
SBaseHostDriver
}
type SZStackHostDriver ¶
type SZStackHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SZStackHostDriver) GetHostType ¶
func (self *SZStackHostDriver) GetHostType() string
func (*SZStackHostDriver) GetHypervisor ¶
func (self *SZStackHostDriver) GetHypervisor() string
func (*SZStackHostDriver) ValidateDiskSize ¶
func (self *SZStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
Source Files ¶
- aliyun.go
- apsara.go
- aws.go
- azure.go
- baremetal.go
- base.go
- bingocloud.go
- cloudpods.go
- ctyun.go
- doc.go
- ecloud.go
- esxi.go
- google.go
- hcs.go
- huawei.go
- huawei_stack.go
- incloudsphere.go
- jdcloud.go
- kvm.go
- managedvirtual.go
- nutanix.go
- openstack.go
- proxmox.go
- qcloud.go
- remotefile.go
- ucloud.go
- virtualization.go
- zstack.go
Click to show internal directories.
Click to hide internal directories.