hostdrivers

package
v0.3.10-0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 27 Imported by: 3

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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SApsaraHostDriver

type SApsaraHostDriver struct {
	SAliyunHostDriver
}

func (*SApsaraHostDriver) GetHostType

func (self *SApsaraHostDriver) GetHostType() string

func (*SApsaraHostDriver) GetHypervisor

func (self *SApsaraHostDriver) GetHypervisor() string

type SAwsHostDriver

type SAwsHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SAwsHostDriver) GetHostType

func (self *SAwsHostDriver) GetHostType() string

func (*SAwsHostDriver) GetHypervisor

func (self *SAwsHostDriver) GetHypervisor() string

func (*SAwsHostDriver) ValidateDiskSize

func (self *SAwsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

func (*SAwsHostDriver) ValidateResetDisk

func (self *SAwsHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SAzureHostDriver

type SAzureHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SAzureHostDriver) GetHostType

func (self *SAzureHostDriver) GetHostType() string

func (*SAzureHostDriver) GetHypervisor

func (self *SAzureHostDriver) GetHypervisor() string

func (*SAzureHostDriver) RequestDeleteSnapshotWithStorage

func (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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

func (*SAzureHostDriver) ValidateUpdateDisk

func (self *SAzureHostDriver) ValidateUpdateDisk(ctx context.Context, userCred mcclient.TokenCredential, input api.DiskUpdateInput) (api.DiskUpdateInput, error)

type SBaremetalHostDriver

type SBaremetalHostDriver struct {
	SBaseHostDriver
}

func (*SBaremetalHostDriver) CheckAndSetCacheImage

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

func (*SBaremetalHostDriver) GetHostType

func (self *SBaremetalHostDriver) GetHostType() string

func (*SBaremetalHostDriver) GetHypervisor

func (self *SBaremetalHostDriver) GetHypervisor() string

func (*SBaremetalHostDriver) IsDisableImageCache

func (self *SBaremetalHostDriver) IsDisableImageCache(host *models.SHost) (bool, error)

func (*SBaremetalHostDriver) RequestAllocateDiskOnStorage

func (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) RequestDeallocateDiskOnHost

func (self *SBaremetalHostDriver) RequestDeallocateDiskOnHost(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, 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) RequestUncacheImage

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

type SBaseHostDriver

type SBaseHostDriver struct {
}

func (*SBaseHostDriver) CleanSchedCache

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

func (*SBaseHostDriver) ConvertFailed

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

func (*SBaseHostDriver) FinishConvert

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

func (*SBaseHostDriver) FinishUnconvert

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

func (*SBaseHostDriver) GetRaidScheme

func (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) 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) RequestDeleteSnapshotsWithStorage

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

func (*SBaseHostDriver) RequestDetachStorage

func (self *SBaseHostDriver) RequestDetachStorage(ctx context.Context, host *models.SHost, storage *models.SStorage, task taskman.ITask) 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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) GetStoragecacheQuota

func (driver *SBingoCloudHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SBingoCloudHostDriver) ValidateDiskSize

func (self *SBingoCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

type SCloudpodsHostDriver

type SCloudpodsHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SCloudpodsHostDriver) GetHostType

func (self *SCloudpodsHostDriver) GetHostType() string

func (*SCloudpodsHostDriver) GetHypervisor

func (self *SCloudpodsHostDriver) GetHypervisor() string

func (*SCloudpodsHostDriver) GetStoragecacheQuota

func (driver *SCloudpodsHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SCloudpodsHostDriver) ValidateDiskSize

func (self *SCloudpodsHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

type SCtyunHostDriver

type SCtyunHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SCtyunHostDriver) GetHostType

func (self *SCtyunHostDriver) GetHostType() string

func (*SCtyunHostDriver) GetHypervisor

func (self *SCtyunHostDriver) GetHypervisor() string

func (*SCtyunHostDriver) ValidateDiskSize

func (self *SCtyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

系统盘必须至少40G

func (*SCtyunHostDriver) ValidateResetDisk

func (self *SCtyunHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SESXiHostDriver

type SESXiHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SESXiHostDriver) CheckAndSetCacheImage

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

func (*SESXiHostDriver) GetHostType

func (self *SESXiHostDriver) GetHostType() string

func (*SESXiHostDriver) GetHypervisor

func (self *SESXiHostDriver) GetHypervisor() string

func (*SESXiHostDriver) RequestAllocateDiskOnStorage

func (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

type SGoogleHostDriver

type SGoogleHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SGoogleHostDriver) GetHostType

func (self *SGoogleHostDriver) GetHostType() string

func (*SGoogleHostDriver) GetHypervisor

func (self *SGoogleHostDriver) GetHypervisor() string

func (*SGoogleHostDriver) ValidateDiskSize

func (self *SGoogleHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

func (*SGoogleHostDriver) ValidateResetDisk

func (self *SGoogleHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SHCSHostDriver

type SHCSHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SHCSHostDriver) GetHostType

func (self *SHCSHostDriver) GetHostType() string

func (*SHCSHostDriver) GetHypervisor

func (self *SHCSHostDriver) GetHypervisor() string

func (*SHCSHostDriver) ValidateDiskSize

func (self *SHCSHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

系统盘必须至少40G

func (*SHCSHostDriver) ValidateResetDisk

func (self *SHCSHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SJDcloudHostDriver

type SJDcloudHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SJDcloudHostDriver) GetHostType

func (self *SJDcloudHostDriver) GetHostType() string

func (*SJDcloudHostDriver) GetHypervisor

func (self *SJDcloudHostDriver) GetHypervisor() string

func (*SJDcloudHostDriver) ValidateDiskSize

func (self *SJDcloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

ValidateDiskSize 云硬盘大小,单位为 GiB;ssd.io1 类型取值范围[20,16000]GB,步长为10G; ssd.gp1 类型取值范围[20,16000]GB,步长为10G; hdd.std1 类型取值范围[20,16000]GB,步长为10G

系统盘: local:不能指定大小,默认为40GB cloud:取值范围: [40,500]GB,并且不能小于镜像的最小系统盘大小,如果没有指定,默认以镜像中的系统盘大小为准

func (*SJDcloudHostDriver) ValidateResetDisk

func (self *SJDcloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

ValidateResetDisk 仅可用状态的云硬盘支持恢复 卸载硬盘需要停止云主机

type SKVMHostDriver

type SKVMHostDriver struct {
	SVirtualizationHostDriver
}

func (*SKVMHostDriver) CheckAndSetCacheImage

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

func (*SKVMHostDriver) FinishUnconvert

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

func (*SKVMHostDriver) GetHostType

func (self *SKVMHostDriver) GetHostType() string

func (*SKVMHostDriver) GetHypervisor

func (self *SKVMHostDriver) GetHypervisor() string

func (*SKVMHostDriver) GetJsonFromHost

func (self *SKVMHostDriver) GetJsonFromHost(ctx context.Context, host *models.SHost) *jsonutils.JSONDict

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, task taskman.ITask) error

func (*SKVMHostDriver) RequestDeleteSnapshotsWithStorage

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

func (*SKVMHostDriver) RequestDetachStorage

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

func (*SKVMHostDriver) RequestPrepareSaveDiskOnHost

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

func (*SKVMHostDriver) 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SManagedVirtualizationHostDriver

type SManagedVirtualizationHostDriver struct {
	SVirtualizationHostDriver
}

func (*SManagedVirtualizationHostDriver) CheckAndSetCacheImage

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

func (*SManagedVirtualizationHostDriver) IsReachStoragecacheCapacityLimit

func (driver *SManagedVirtualizationHostDriver) IsReachStoragecacheCapacityLimit(host *models.SHost, cachedImages []models.SCachedimage) bool

func (*SManagedVirtualizationHostDriver) RequestAllocateDiskOnStorage

func (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, 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) error

func (*SManagedVirtualizationHostDriver) ValidateResetDisk

func (self *SManagedVirtualizationHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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) GetStoragecacheQuota

func (driver *SNutanixHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SNutanixHostDriver) ValidateDiskSize

func (self *SNutanixHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

type SOpenStackHostDriver

type SOpenStackHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SOpenStackHostDriver) GetHostType

func (self *SOpenStackHostDriver) GetHostType() string

func (*SOpenStackHostDriver) GetHypervisor

func (self *SOpenStackHostDriver) GetHypervisor() string

func (*SOpenStackHostDriver) GetStoragecacheQuota

func (driver *SOpenStackHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SOpenStackHostDriver) ValidateDiskSize

func (self *SOpenStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

func (*SOpenStackHostDriver) ValidateResetDisk

func (self *SOpenStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SProxmoxHostDriver

type SProxmoxHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SProxmoxHostDriver) GetHostType

func (self *SProxmoxHostDriver) GetHostType() string

func (*SProxmoxHostDriver) GetHypervisor

func (self *SProxmoxHostDriver) GetHypervisor() string

func (*SProxmoxHostDriver) GetStoragecacheQuota

func (driver *SProxmoxHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SProxmoxHostDriver) ValidateDiskSize

func (self *SProxmoxHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

type SQcloudHostDriver

type SQcloudHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SQcloudHostDriver) GetHostType

func (self *SQcloudHostDriver) GetHostType() string

func (*SQcloudHostDriver) GetHypervisor

func (self *SQcloudHostDriver) GetHypervisor() string

func (*SQcloudHostDriver) GetStoragecacheQuota

func (driver *SQcloudHostDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SQcloudHostDriver) RequestDeleteSnapshotWithStorage

func (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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SRemoteFileDriver

type SRemoteFileDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SRemoteFileDriver) GetHostType

func (self *SRemoteFileDriver) GetHostType() string

func (*SRemoteFileDriver) GetHypervisor

func (self *SRemoteFileDriver) GetHypervisor() string

func (*SRemoteFileDriver) GetStoragecacheQuota

func (driver *SRemoteFileDriver) GetStoragecacheQuota(host *models.SHost) int

func (*SRemoteFileDriver) ValidateDiskSize

func (self *SRemoteFileDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

type SUCloudHostDriver

type SUCloudHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SUCloudHostDriver) GetHostType

func (self *SUCloudHostDriver) GetHostType() string

func (*SUCloudHostDriver) GetHypervisor

func (self *SUCloudHostDriver) GetHypervisor() string

func (*SUCloudHostDriver) ValidateDiskSize

func (self *SUCloudHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

func (*SUCloudHostDriver) ValidateResetDisk

func (self *SUCloudHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SVirtualizationHostDriver

type SVirtualizationHostDriver struct {
	SBaseHostDriver
}

type SZStackHostDriver

type SZStackHostDriver struct {
	SManagedVirtualizationHostDriver
}

func (*SZStackHostDriver) GetHostType

func (self *SZStackHostDriver) GetHostType() string

func (*SZStackHostDriver) GetHypervisor

func (self *SZStackHostDriver) GetHypervisor() string

func (*SZStackHostDriver) ValidateDiskSize

func (self *SZStackHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb int) error

func (*SZStackHostDriver) ValidateResetDisk

func (self *SZStackHostDriver) ValidateResetDisk(ctx context.Context, userCred mcclient.TokenCredential, disk *models.SDisk, snapshot *models.SSnapshot, guests []models.SGuest, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

Jump to

Keyboard shortcuts

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