hostdrivers

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SAliyunHostDriver

type SAliyunHostDriver struct {
	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 (self *SAzureHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

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 (self *SBaremetalHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

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 (self *SBaremetalHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, cleanSnapshots bool, task taskman.ITask) error

func (*SBaremetalHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SBaremetalHostDriver) RequestRebuildDiskOnStorage

func (self *SBaremetalHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SBaremetalHostDriver) RequestResizeDiskOnHost

func (self *SBaremetalHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, sizeMb int64, task taskman.ITask) error

func (*SBaremetalHostDriver) RequestSaveUploadImageOnHost

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

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

func (self *SBaremetalHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask, deactivateImage bool) 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(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, hostType string) error

func (*SBaseHostDriver) FinishUnconvert

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

func (*SBaseHostDriver) GetRaidScheme

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

func (*SBaseHostDriver) 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 (self *SBaseHostDriver) RequestAttachStorage(ctx context.Context, hoststorage *models.SHoststorage, host *models.SHost, storage *models.SStorage, task taskman.ITask) error

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 (self *SBaseHostDriver) RequestCleanUpDiskSnapshots(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

func (*SBaseHostDriver) RequestDeallocateBackupDiskOnHost

func (driver *SBaseHostDriver) RequestDeallocateBackupDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask) error

func (*SBaseHostDriver) RequestDeleteSnapshotWithoutGuest

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

func (*SBaseHostDriver) RequestDeleteSnapshotsWithStorage

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

func (*SBaseHostDriver) RequestDetachStorage

func (self *SBaseHostDriver) RequestDetachStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, task taskman.ITask) error

func (*SBaseHostDriver) RequestDiskMigrate

func (driver *SBaseHostDriver) RequestDiskMigrate(ctx context.Context, targetHost *models.SHost, targetStorage *models.SStorage, disk *models.SDisk, task taskman.ITask, body *jsonutils.JSONDict) error

func (*SBaseHostDriver) RequestDiskSrcMigratePrepare

func (driver *SBaseHostDriver) RequestDiskSrcMigratePrepare(ctx context.Context, host *models.SHost, disk *models.SDisk, task taskman.ITask) (jsonutils.JSONObject, error)

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 (self *SBaseHostDriver) RequestResetDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, params *jsonutils.JSONDict, task taskman.ITask) error

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 (driver *SBaseHostDriver) RequestSyncOnHost(ctx context.Context, host *models.SHost, task taskman.ITask) error

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 (self *SESXiHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SESXiHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SESXiHostDriver) RequestResizeDiskOnHost

func (self *SESXiHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, sizeMb int64, task taskman.ITask) error

func (*SESXiHostDriver) RequestSaveUploadImageOnHost

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

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 (self *SKVMHostDriver) GetJsonFromHost(ctx context.Context, host *models.SHost) *jsonutils.JSONDict

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 (self *SKVMHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SKVMHostDriver) RequestAttachStorage

func (self *SKVMHostDriver) RequestAttachStorage(ctx context.Context, hoststorage *models.SHoststorage, host *models.SHost, storage *models.SStorage, task taskman.ITask) error

func (*SKVMHostDriver) RequestCleanUpDiskSnapshots

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

func (*SKVMHostDriver) RequestDeallocateBackupDiskOnHost

func (driver *SKVMHostDriver) RequestDeallocateBackupDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask) error

func (*SKVMHostDriver) RequestDeallocateDiskOnHost

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

func (*SKVMHostDriver) RequestDeleteSnapshotWithoutGuest

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

func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage

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

func (*SKVMHostDriver) RequestDetachStorage

func (self *SKVMHostDriver) RequestDetachStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, task taskman.ITask) error

func (*SKVMHostDriver) RequestDiskMigrate

func (self *SKVMHostDriver) RequestDiskMigrate(ctx context.Context, targetHost *models.SHost, targetStorage *models.SStorage, disk *models.SDisk, task taskman.ITask, body *jsonutils.JSONDict) error

func (*SKVMHostDriver) RequestDiskSrcMigratePrepare

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

func (*SKVMHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SKVMHostDriver) RequestProbeIsolatedDevices

func (driver *SKVMHostDriver) RequestProbeIsolatedDevices(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, input jsonutils.JSONObject) (*jsonutils.JSONArray, error)

func (*SKVMHostDriver) RequestRebuildDiskOnStorage

func (self *SKVMHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SKVMHostDriver) RequestResetDisk

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

func (*SKVMHostDriver) RequestResizeDiskOnHost

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

func (*SKVMHostDriver) RequestSaveUploadImageOnHost

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

func (*SKVMHostDriver) RequestSyncOnHost

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

func (*SKVMHostDriver) RequestUncacheImage

func (self *SKVMHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask, deactivateImage bool) 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

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 (self *SManagedVirtualizationHostDriver) RequestAllocateDiskOnStorage(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SManagedVirtualizationHostDriver) RequestDeallocateDiskOnHost

func (self *SManagedVirtualizationHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, cleanSnapshots bool, task taskman.ITask) error

func (*SManagedVirtualizationHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SManagedVirtualizationHostDriver) RequestRebuildDiskOnStorage

func (self *SManagedVirtualizationHostDriver) RequestRebuildDiskOnStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, task taskman.ITask, input api.DiskAllocateInput) error

func (*SManagedVirtualizationHostDriver) RequestResetDisk

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

func (*SManagedVirtualizationHostDriver) RequestResizeDiskOnHost

func (self *SManagedVirtualizationHostDriver) RequestResizeDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, sizeMb int64, task taskman.ITask) error

func (*SManagedVirtualizationHostDriver) RequestSaveUploadImageOnHost

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

func (*SManagedVirtualizationHostDriver) RequestUncacheImage

func (self *SManagedVirtualizationHostDriver) RequestUncacheImage(ctx context.Context, host *models.SHost, storageCache *models.SStoragecache, task taskman.ITask, deactivateImage bool) error

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 (self *SQcloudHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

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 (self *SVolcengineHostDriver) RequestDeleteSnapshotWithStorage(ctx context.Context, host *models.SHost, snapshot *models.SSnapshot, task taskman.ITask) error

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)

Jump to

Keyboard shortcuts

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