Documentation ¶
Index ¶
- type SAliyunHostDriver
- func (self *SAliyunHostDriver) GetHostType() string
- func (self *SAliyunHostDriver) GetHypervisor() string
- func (self *SAliyunHostDriver) GetProvider() string
- func (self *SAliyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SAliyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SApsaraHostDriver
- type SAwsHostDriver
- func (self *SAwsHostDriver) GetHostType() string
- func (self *SAwsHostDriver) GetHypervisor() string
- func (self *SAwsHostDriver) GetProvider() string
- func (self *SAwsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SAwsHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SAzureHostDriver
- func (self *SAzureHostDriver) GetHostType() string
- func (self *SAzureHostDriver) GetHypervisor() string
- func (self *SAzureHostDriver) GetProvider() 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, ...) (*api.DiskResetInput, error)
- func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (*api.DiskUpdateInput, error)
- type SBaiduHostDriver
- type SBaremetalHostDriver
- func (self *SBaremetalHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SBaremetalHostDriver) GetHostType() string
- func (self *SBaremetalHostDriver) GetHypervisor() string
- func (self *SBaremetalHostDriver) GetProvider() 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) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) 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) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, ...) 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(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) 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) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) 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) RequestDeleteSnapshotWithoutGuest(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) 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) RequestDiskMigrate(ctx context.Context, targetHost *models.SHost, targetStorage *models.SStorage, ...) error
- func (driver *SBaseHostDriver) RequestDiskSrcMigratePrepare(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) (jsonutils.JSONObject, 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 (self *SBaseHostDriver) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, ...) 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, ...) (*api.DiskResetInput, error)
- func (self *SBaseHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, ...) (*api.DiskUpdateInput, error)
- type SBingoCloudHostDriver
- func (self *SBingoCloudHostDriver) GetHostType() string
- func (self *SBingoCloudHostDriver) GetHypervisor() string
- func (self *SBingoCloudHostDriver) GetProvider() string
- func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SCloudpodsBaremetalHostDriver
- func (self *SCloudpodsBaremetalHostDriver) GetHostType() string
- func (self *SCloudpodsBaremetalHostDriver) GetHypervisor() string
- func (self *SCloudpodsBaremetalHostDriver) GetProvider() string
- func (driver *SCloudpodsBaremetalHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (driver *SCloudpodsBaremetalHostDriver) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (driver *SCloudpodsBaremetalHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (driver *SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (driver *SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SCloudpodsBaremetalHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SCloudpodsESXiHostDriver
- func (self *SCloudpodsESXiHostDriver) GetHostType() string
- func (self *SCloudpodsESXiHostDriver) GetHypervisor() string
- func (self *SCloudpodsESXiHostDriver) GetProvider() string
- func (driver *SCloudpodsESXiHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SCloudpodsESXiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SCloudpodsHostDriver
- func (self *SCloudpodsHostDriver) GetHostType() string
- func (self *SCloudpodsHostDriver) GetHypervisor() string
- func (self *SCloudpodsHostDriver) GetProvider() string
- func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SContainerHostDriver
- type SCtyunHostDriver
- func (self *SCtyunHostDriver) GetHostType() string
- func (self *SCtyunHostDriver) GetHypervisor() string
- func (self *SCtyunHostDriver) GetProvider() string
- func (self *SCtyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SCtyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SCucloudHostDriver
- type SESXiHostDriver
- func (self *SESXiHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SESXiHostDriver) GetHostType() string
- func (self *SESXiHostDriver) GetHypervisor() string
- func (self *SESXiHostDriver) GetProvider() 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) GetProvider() string
- func (self *SGoogleHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SGoogleHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SH3CHostDriver
- func (self *SH3CHostDriver) GetHostType() string
- func (self *SH3CHostDriver) GetHypervisor() string
- func (self *SH3CHostDriver) GetProvider() string
- func (self *SH3CHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SH3CHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SHCSHostDriver
- func (self *SHCSHostDriver) GetHostType() string
- func (self *SHCSHostDriver) GetHypervisor() string
- func (self *SHCSHostDriver) GetProvider() string
- func (self *SHCSHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHCSHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SHCSOHostDriver
- func (self *SHCSOHostDriver) GetHostType() string
- func (self *SHCSOHostDriver) GetHypervisor() string
- func (self *SHCSOHostDriver) GetProvider() string
- func (self *SHCSOHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHCSOHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SHCSOPHostDriver
- func (self *SHCSOPHostDriver) GetHostType() string
- func (self *SHCSOPHostDriver) GetHypervisor() string
- func (self *SHCSOPHostDriver) GetProvider() string
- func (self *SHCSOPHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHCSOPHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SHuaweiHostDriver
- func (self *SHuaweiHostDriver) GetHostType() string
- func (self *SHuaweiHostDriver) GetHypervisor() string
- func (self *SHuaweiHostDriver) GetProvider() string
- func (self *SHuaweiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SHuaweiHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SInCloudSphereHostDriver
- func (self *SInCloudSphereHostDriver) GetHostType() string
- func (self *SInCloudSphereHostDriver) GetHypervisor() string
- func (self *SInCloudSphereHostDriver) GetProvider() 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, ...) (*api.DiskResetInput, error)
- type SJDcloudHostDriver
- func (self *SJDcloudHostDriver) GetHostType() string
- func (self *SJDcloudHostDriver) GetHypervisor() string
- func (self *SJDcloudHostDriver) GetProvider() string
- func (self *SJDcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SJDcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SKVMHostDriver
- func (self *SKVMHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) 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) GetProvider() string
- 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) RequestDeleteSnapshotWithoutGuest(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) 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) RequestDiskMigrate(ctx context.Context, targetHost *models.SHost, targetStorage *models.SStorage, ...) error
- func (self *SKVMHostDriver) RequestDiskSrcMigratePrepare(ctx context.Context, host *models.SHost, disk *models.SDisk, ...) (jsonutils.JSONObject, 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, ...) (*api.DiskResetInput, error)
- type SKsyunHostDriver
- type SManagedVirtualizationHostDriver
- func (self *SManagedVirtualizationHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) 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, ...) (*api.DiskResetInput, error)
- type SNutanixHostDriver
- func (self *SNutanixHostDriver) GetHostType() string
- func (self *SNutanixHostDriver) GetHypervisor() string
- func (self *SNutanixHostDriver) GetProvider() string
- func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SOpenStackHostDriver
- func (self *SOpenStackHostDriver) GetHostType() string
- func (self *SOpenStackHostDriver) GetHypervisor() string
- func (self *SOpenStackHostDriver) GetProvider() 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, ...) (*api.DiskResetInput, error)
- type SOracleHostDriver
- type SProxmoxHostDriver
- func (self *SProxmoxHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, ...) error
- func (self *SProxmoxHostDriver) GetHostType() string
- func (self *SProxmoxHostDriver) GetHypervisor() string
- func (self *SProxmoxHostDriver) GetProvider() string
- func (driver *SProxmoxHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SProxmoxHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SQcloudHostDriver
- func (self *SQcloudHostDriver) GetHostType() string
- func (self *SQcloudHostDriver) GetHypervisor() string
- func (self *SQcloudHostDriver) GetProvider() 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, ...) (*api.DiskResetInput, error)
- type SQingCloudHostDriver
- type SRemoteFileDriver
- func (self *SRemoteFileDriver) GetHostType() string
- func (self *SRemoteFileDriver) GetHypervisor() string
- func (self *SRemoteFileDriver) GetProvider() string
- func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- type SSangForHostDriver
- type SUCloudHostDriver
- func (self *SUCloudHostDriver) GetHostType() string
- func (self *SUCloudHostDriver) GetHypervisor() string
- func (self *SUCloudHostDriver) GetProvider() string
- func (self *SUCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SUCloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SVirtualizationHostDriver
- type SVolcengineHostDriver
- func (self *SVolcengineHostDriver) GetHostType() string
- func (self *SVolcengineHostDriver) GetHypervisor() string
- func (self *SVolcengineHostDriver) GetProvider() string
- func (driver *SVolcengineHostDriver) GetStoragecacheQuota(host *models.SHost) int
- func (self *SVolcengineHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, ...) error
- func (self *SVolcengineHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SVolcengineHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, error)
- type SZStackHostDriver
- func (self *SZStackHostDriver) GetHostType() string
- func (self *SZStackHostDriver) GetHypervisor() string
- func (self *SZStackHostDriver) GetProvider() string
- func (self *SZStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
- func (self *SZStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, ...) (*api.DiskResetInput, 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) GetProvider ¶
func (self *SAliyunHostDriver) GetProvider() string
func (*SAliyunHostDriver) ValidateDiskSize ¶
func (self *SAliyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SAliyunHostDriver) ValidateResetDisk ¶
func (self *SAliyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SApsaraHostDriver ¶
type SApsaraHostDriver struct {
SAliyunHostDriver
}
func (*SApsaraHostDriver) GetHostType ¶
func (self *SApsaraHostDriver) GetHostType() string
func (*SApsaraHostDriver) GetHypervisor ¶
func (self *SApsaraHostDriver) GetHypervisor() string
func (*SApsaraHostDriver) GetProvider ¶
func (self *SApsaraHostDriver) GetProvider() 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) GetProvider ¶
func (self *SAwsHostDriver) GetProvider() string
func (*SAwsHostDriver) ValidateDiskSize ¶
func (self *SAwsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SAwsHostDriver) ValidateResetDisk ¶
func (self *SAwsHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, 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) GetProvider ¶
func (self *SAzureHostDriver) GetProvider() string
func (*SAzureHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SAzureHostDriver) ValidateDiskSize ¶
func (self *SAzureHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SAzureHostDriver) ValidateResetDisk ¶
func (self *SAzureHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
func (*SAzureHostDriver) ValidateUpdateDisk ¶
func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, input *api.DiskUpdateInput) (*api.DiskUpdateInput, error)
type SBaiduHostDriver ¶
type SBaiduHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SBaiduHostDriver) GetHostType ¶
func (self *SBaiduHostDriver) GetHostType() string
func (*SBaiduHostDriver) GetHypervisor ¶
func (self *SBaiduHostDriver) GetHypervisor() string
func (*SBaiduHostDriver) GetProvider ¶
func (self *SBaiduHostDriver) GetProvider() string
type SBaremetalHostDriver ¶
type SBaremetalHostDriver struct {
SBaseHostDriver
}
func (*SBaremetalHostDriver) CheckAndSetCacheImage ¶
func (self *SBaremetalHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, 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) GetProvider ¶
func (self *SBaremetalHostDriver) GetProvider() string
func (*SBaremetalHostDriver) IsDisableImageCache ¶
func (self *SBaremetalHostDriver) IsDisableImageCache(host *models.SHost) (bool, error)
func (*SBaremetalHostDriver) RequestAllocateDiskOnStorage ¶
func (*SBaremetalHostDriver) RequestBaremetalMaintence ¶
func (self *SBaremetalHostDriver) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaremetalHostDriver) RequestBaremetalUnmaintence ¶
func (self *SBaremetalHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaremetalHostDriver) RequestDeallocateDiskOnHost ¶
func (*SBaremetalHostDriver) RequestPrepareSaveDiskOnHost ¶
func (*SBaremetalHostDriver) RequestRebuildDiskOnStorage ¶
func (*SBaremetalHostDriver) RequestResizeDiskOnHost ¶
func (*SBaremetalHostDriver) RequestSaveUploadImageOnHost ¶
func (*SBaremetalHostDriver) RequestSyncBaremetalHostConfig ¶
func (self *SBaremetalHostDriver) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaremetalHostDriver) RequestSyncBaremetalHostStatus ¶
func (self *SBaremetalHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaremetalHostDriver) RequestUncacheImage ¶
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 (*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) RequestBaremetalMaintence ¶
func (self *SBaseHostDriver) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaseHostDriver) RequestBaremetalUnmaintence ¶
func (self *SBaseHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaseHostDriver) RequestCleanUpDiskSnapshots ¶
func (*SBaseHostDriver) RequestDeallocateBackupDiskOnHost ¶
func (*SBaseHostDriver) RequestDeleteSnapshotWithoutGuest ¶
func (*SBaseHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SBaseHostDriver) RequestDetachStorage ¶
func (*SBaseHostDriver) RequestDiskMigrate ¶
func (*SBaseHostDriver) RequestDiskSrcMigratePrepare ¶
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) RequestSyncBaremetalHostConfig ¶
func (self *SBaseHostDriver) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SBaseHostDriver) RequestSyncBaremetalHostStatus ¶
func (self *SBaseHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
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 (self *SBaseHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
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) GetProvider ¶
func (self *SBingoCloudHostDriver) GetProvider() 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 SCloudpodsBaremetalHostDriver ¶
type SCloudpodsBaremetalHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCloudpodsBaremetalHostDriver) GetHostType ¶
func (self *SCloudpodsBaremetalHostDriver) GetHostType() string
func (*SCloudpodsBaremetalHostDriver) GetHypervisor ¶
func (self *SCloudpodsBaremetalHostDriver) GetHypervisor() string
func (*SCloudpodsBaremetalHostDriver) GetProvider ¶
func (self *SCloudpodsBaremetalHostDriver) GetProvider() string
func (*SCloudpodsBaremetalHostDriver) GetStoragecacheQuota ¶
func (driver *SCloudpodsBaremetalHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SCloudpodsBaremetalHostDriver) RequestBaremetalMaintence ¶
func (driver *SCloudpodsBaremetalHostDriver) RequestBaremetalMaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SCloudpodsBaremetalHostDriver) RequestBaremetalUnmaintence ¶
func (driver *SCloudpodsBaremetalHostDriver) RequestBaremetalUnmaintence(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostConfig ¶
func (driver *SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostConfig(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostStatus ¶
func (driver *SCloudpodsBaremetalHostDriver) RequestSyncBaremetalHostStatus(ctx context.Context, userCred mcclient.TokenCredential, baremetal *models.SHost, task taskman.ITask) error
func (*SCloudpodsBaremetalHostDriver) ValidateDiskSize ¶
func (self *SCloudpodsBaremetalHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
type SCloudpodsESXiHostDriver ¶
type SCloudpodsESXiHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCloudpodsESXiHostDriver) GetHostType ¶
func (self *SCloudpodsESXiHostDriver) GetHostType() string
func (*SCloudpodsESXiHostDriver) GetHypervisor ¶
func (self *SCloudpodsESXiHostDriver) GetHypervisor() string
func (*SCloudpodsESXiHostDriver) GetProvider ¶
func (self *SCloudpodsESXiHostDriver) GetProvider() string
func (*SCloudpodsESXiHostDriver) GetStoragecacheQuota ¶
func (driver *SCloudpodsESXiHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SCloudpodsESXiHostDriver) ValidateDiskSize ¶
func (self *SCloudpodsESXiHostDriver) 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) GetProvider ¶
func (self *SCloudpodsHostDriver) GetProvider() 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 SContainerHostDriver ¶
type SContainerHostDriver struct {
*SKVMHostDriver
}
func (*SContainerHostDriver) GetHostType ¶
func (d *SContainerHostDriver) GetHostType() string
func (*SContainerHostDriver) GetHypervisor ¶
func (d *SContainerHostDriver) GetHypervisor() string
func (*SContainerHostDriver) GetProvider ¶
func (d *SContainerHostDriver) GetProvider() string
type SCtyunHostDriver ¶
type SCtyunHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCtyunHostDriver) GetHostType ¶
func (self *SCtyunHostDriver) GetHostType() string
func (*SCtyunHostDriver) GetHypervisor ¶
func (self *SCtyunHostDriver) GetHypervisor() string
func (*SCtyunHostDriver) GetProvider ¶
func (self *SCtyunHostDriver) GetProvider() string
func (*SCtyunHostDriver) ValidateDiskSize ¶
func (self *SCtyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SCtyunHostDriver) ValidateResetDisk ¶
func (self *SCtyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SCucloudHostDriver ¶
type SCucloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SCucloudHostDriver) GetHostType ¶
func (self *SCucloudHostDriver) GetHostType() string
func (*SCucloudHostDriver) GetHypervisor ¶
func (self *SCucloudHostDriver) GetHypervisor() string
func (*SCucloudHostDriver) GetProvider ¶
func (self *SCucloudHostDriver) GetProvider() string
type SESXiHostDriver ¶
type SESXiHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SESXiHostDriver) CheckAndSetCacheImage ¶
func (self *SESXiHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, 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) GetProvider ¶
func (self *SESXiHostDriver) GetProvider() 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
func (*SEcloudHostDriver) GetProvider ¶
func (d *SEcloudHostDriver) GetProvider() 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) GetProvider ¶
func (self *SGoogleHostDriver) GetProvider() string
func (*SGoogleHostDriver) ValidateDiskSize ¶
func (self *SGoogleHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SGoogleHostDriver) ValidateResetDisk ¶
func (self *SGoogleHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SH3CHostDriver ¶
type SH3CHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SH3CHostDriver) GetHostType ¶
func (self *SH3CHostDriver) GetHostType() string
func (*SH3CHostDriver) GetHypervisor ¶
func (self *SH3CHostDriver) GetHypervisor() string
func (*SH3CHostDriver) GetProvider ¶
func (self *SH3CHostDriver) GetProvider() string
func (*SH3CHostDriver) ValidateDiskSize ¶
func (self *SH3CHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SH3CHostDriver) ValidateResetDisk ¶
func (self *SH3CHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, 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) GetProvider ¶
func (self *SHCSHostDriver) GetProvider() string
func (*SHCSHostDriver) ValidateDiskSize ¶
func (self *SHCSHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SHCSHostDriver) ValidateResetDisk ¶
func (self *SHCSHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SHCSOHostDriver ¶
type SHCSOHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHCSOHostDriver) GetHostType ¶
func (self *SHCSOHostDriver) GetHostType() string
func (*SHCSOHostDriver) GetHypervisor ¶
func (self *SHCSOHostDriver) GetHypervisor() string
func (*SHCSOHostDriver) GetProvider ¶
func (self *SHCSOHostDriver) GetProvider() string
func (*SHCSOHostDriver) ValidateDiskSize ¶
func (self *SHCSOHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SHCSOHostDriver) ValidateResetDisk ¶
func (self *SHCSOHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SHCSOPHostDriver ¶
type SHCSOPHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHCSOPHostDriver) GetHostType ¶
func (self *SHCSOPHostDriver) GetHostType() string
func (*SHCSOPHostDriver) GetHypervisor ¶
func (self *SHCSOPHostDriver) GetHypervisor() string
func (*SHCSOPHostDriver) GetProvider ¶
func (self *SHCSOPHostDriver) GetProvider() string
func (*SHCSOPHostDriver) ValidateDiskSize ¶
func (self *SHCSOPHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SHCSOPHostDriver) ValidateResetDisk ¶
func (self *SHCSOPHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SHuaweiHostDriver ¶
type SHuaweiHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SHuaweiHostDriver) GetHostType ¶
func (self *SHuaweiHostDriver) GetHostType() string
func (*SHuaweiHostDriver) GetHypervisor ¶
func (self *SHuaweiHostDriver) GetHypervisor() string
func (*SHuaweiHostDriver) GetProvider ¶
func (self *SHuaweiHostDriver) GetProvider() string
func (*SHuaweiHostDriver) ValidateDiskSize ¶
func (self *SHuaweiHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
系统盘必须至少40G
func (*SHuaweiHostDriver) ValidateResetDisk ¶
func (self *SHuaweiHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SInCloudSphereHostDriver ¶
type SInCloudSphereHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SInCloudSphereHostDriver) GetHostType ¶
func (self *SInCloudSphereHostDriver) GetHostType() string
func (*SInCloudSphereHostDriver) GetHypervisor ¶
func (self *SInCloudSphereHostDriver) GetHypervisor() string
func (*SInCloudSphereHostDriver) GetProvider ¶
func (self *SInCloudSphereHostDriver) GetProvider() 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
func (*SInCloudSphereHostDriver) ValidateResetDisk ¶
func (self *SInCloudSphereHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, 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) GetProvider ¶
func (self *SJDcloudHostDriver) GetProvider() 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, input *api.DiskResetInput) (*api.DiskResetInput, error)
ValidateResetDisk 仅可用状态的云硬盘支持恢复 卸载硬盘需要停止云主机
type SKVMHostDriver ¶
type SKVMHostDriver struct {
SVirtualizationHostDriver
}
func (*SKVMHostDriver) CheckAndSetCacheImage ¶
func (self *SKVMHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, 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) GetProvider ¶
func (self *SKVMHostDriver) GetProvider() string
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) RequestDeleteSnapshotWithoutGuest ¶
func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage ¶
func (*SKVMHostDriver) RequestDetachStorage ¶
func (*SKVMHostDriver) RequestDiskMigrate ¶
func (*SKVMHostDriver) RequestDiskSrcMigratePrepare ¶
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 (*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
func (*SKVMHostDriver) ValidateResetDisk ¶
func (self *SKVMHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SKsyunHostDriver ¶
type SKsyunHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SKsyunHostDriver) GetHostType ¶
func (self *SKsyunHostDriver) GetHostType() string
func (*SKsyunHostDriver) GetHypervisor ¶
func (self *SKsyunHostDriver) GetHypervisor() string
func (*SKsyunHostDriver) GetProvider ¶
func (self *SKsyunHostDriver) GetProvider() string
type SManagedVirtualizationHostDriver ¶
type SManagedVirtualizationHostDriver struct {
SVirtualizationHostDriver
}
func (*SManagedVirtualizationHostDriver) CheckAndSetCacheImage ¶
func (self *SManagedVirtualizationHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, 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 (*SManagedVirtualizationHostDriver) ValidateResetDisk ¶
func (self *SManagedVirtualizationHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SNutanixHostDriver ¶
type SNutanixHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SNutanixHostDriver) GetHostType ¶
func (self *SNutanixHostDriver) GetHostType() string
func (*SNutanixHostDriver) GetHypervisor ¶
func (self *SNutanixHostDriver) GetHypervisor() string
func (*SNutanixHostDriver) GetProvider ¶
func (self *SNutanixHostDriver) GetProvider() 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) GetProvider ¶
func (self *SOpenStackHostDriver) GetProvider() 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
func (*SOpenStackHostDriver) ValidateResetDisk ¶
func (self *SOpenStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SOracleHostDriver ¶
type SOracleHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SOracleHostDriver) GetHostType ¶
func (self *SOracleHostDriver) GetHostType() string
func (*SOracleHostDriver) GetHypervisor ¶
func (self *SOracleHostDriver) GetHypervisor() string
func (*SOracleHostDriver) GetProvider ¶
func (self *SOracleHostDriver) GetProvider() string
type SProxmoxHostDriver ¶
type SProxmoxHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SProxmoxHostDriver) CheckAndSetCacheImage ¶
func (self *SProxmoxHostDriver) CheckAndSetCacheImage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask) error
func (*SProxmoxHostDriver) GetHostType ¶
func (self *SProxmoxHostDriver) GetHostType() string
func (*SProxmoxHostDriver) GetHypervisor ¶
func (self *SProxmoxHostDriver) GetHypervisor() string
func (*SProxmoxHostDriver) GetProvider ¶
func (self *SProxmoxHostDriver) GetProvider() 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) GetProvider ¶
func (self *SQcloudHostDriver) GetProvider() 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
func (*SQcloudHostDriver) ValidateResetDisk ¶
func (self *SQcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SQingCloudHostDriver ¶
type SQingCloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SQingCloudHostDriver) GetHostType ¶
func (self *SQingCloudHostDriver) GetHostType() string
func (*SQingCloudHostDriver) GetHypervisor ¶
func (self *SQingCloudHostDriver) GetHypervisor() string
func (*SQingCloudHostDriver) GetProvider ¶
func (self *SQingCloudHostDriver) GetProvider() string
type SRemoteFileDriver ¶
type SRemoteFileDriver struct {
SManagedVirtualizationHostDriver
}
func (*SRemoteFileDriver) GetHostType ¶
func (self *SRemoteFileDriver) GetHostType() string
func (*SRemoteFileDriver) GetHypervisor ¶
func (self *SRemoteFileDriver) GetHypervisor() string
func (*SRemoteFileDriver) GetProvider ¶
func (self *SRemoteFileDriver) GetProvider() 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 SSangForHostDriver ¶
type SSangForHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SSangForHostDriver) GetHostType ¶
func (self *SSangForHostDriver) GetHostType() string
func (*SSangForHostDriver) GetHypervisor ¶
func (self *SSangForHostDriver) GetHypervisor() string
func (*SSangForHostDriver) GetProvider ¶
func (self *SSangForHostDriver) GetProvider() string
type SUCloudHostDriver ¶
type SUCloudHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SUCloudHostDriver) GetHostType ¶
func (self *SUCloudHostDriver) GetHostType() string
func (*SUCloudHostDriver) GetHypervisor ¶
func (self *SUCloudHostDriver) GetHypervisor() string
func (*SUCloudHostDriver) GetProvider ¶
func (self *SUCloudHostDriver) GetProvider() string
func (*SUCloudHostDriver) ValidateDiskSize ¶
func (self *SUCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SUCloudHostDriver) ValidateResetDisk ¶
func (self *SUCloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SVirtualizationHostDriver ¶
type SVirtualizationHostDriver struct {
SBaseHostDriver
}
type SVolcengineHostDriver ¶
type SVolcengineHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SVolcengineHostDriver) GetHostType ¶
func (self *SVolcengineHostDriver) GetHostType() string
func (*SVolcengineHostDriver) GetHypervisor ¶
func (self *SVolcengineHostDriver) GetHypervisor() string
func (*SVolcengineHostDriver) GetProvider ¶
func (self *SVolcengineHostDriver) GetProvider() string
func (*SVolcengineHostDriver) GetStoragecacheQuota ¶
func (driver *SVolcengineHostDriver) GetStoragecacheQuota(host *models.SHost) int
func (*SVolcengineHostDriver) RequestDeleteSnapshotWithStorage ¶
func (*SVolcengineHostDriver) ValidateDiskSize ¶
func (self *SVolcengineHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SVolcengineHostDriver) ValidateResetDisk ¶
func (self *SVolcengineHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
type SZStackHostDriver ¶
type SZStackHostDriver struct {
SManagedVirtualizationHostDriver
}
func (*SZStackHostDriver) GetHostType ¶
func (self *SZStackHostDriver) GetHostType() string
func (*SZStackHostDriver) GetHypervisor ¶
func (self *SZStackHostDriver) GetHypervisor() string
func (*SZStackHostDriver) GetProvider ¶
func (self *SZStackHostDriver) GetProvider() string
func (*SZStackHostDriver) ValidateDiskSize ¶
func (self *SZStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error
func (*SZStackHostDriver) ValidateResetDisk ¶
func (self *SZStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, input *api.DiskResetInput) (*api.DiskResetInput, error)
Source Files ¶
- aliyun.go
- apsara.go
- aws.go
- azure.go
- baidu.go
- baremetal.go
- base.go
- bingocloud.go
- cloudpods-baremetal.go
- cloudpods-esxi.go
- cloudpods-kvm.go
- container.go
- ctyun.go
- cucloud.go
- doc.go
- ecloud.go
- esxi.go
- google.go
- h3c.go
- hcs.go
- hcsop.go
- huawei.go
- huawei_stack.go
- incloudsphere.go
- jdcloud.go
- ksyun.go
- kvm.go
- managedvirtual.go
- nutanix.go
- openstack.go
- oracle.go
- proxmox.go
- qcloud.go
- qingcloud.go
- remotefile.go
- sangfor.go
- ucloud.go
- virtualization.go
- volcengine.go
- zstack.go
Click to show internal directories.
Click to hide internal directories.