guestdrivers

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: 45 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudVMStatus

func GetCloudVMStatus(vm cloudprovider.ICloudVM) string

Types

type SAliyunGuestDriver

type SAliyunGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SAliyunGuestDriver) AllowReconfigGuest

func (self *SAliyunGuestDriver) AllowReconfigGuest() bool

func (*SAliyunGuestDriver) ChooseHostStorage

func (self *SAliyunGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SAliyunGuestDriver) GetAttachDiskStatus

func (self *SAliyunGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SAliyunGuestDriver) GetChangeConfigStatus

func (self *SAliyunGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SAliyunGuestDriver) GetComputeQuotaKeys

func (self *SAliyunGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SAliyunGuestDriver) GetDefaultSysDiskBackend

func (self *SAliyunGuestDriver) GetDefaultSysDiskBackend() string

func (*SAliyunGuestDriver) GetDeployStatus

func (self *SAliyunGuestDriver) GetDeployStatus() ([]string, error)

func (*SAliyunGuestDriver) GetDetachDiskStatus

func (self *SAliyunGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SAliyunGuestDriver) GetGuestInitialStateAfterCreate

func (self *SAliyunGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SAliyunGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SAliyunGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SAliyunGuestDriver) GetHypervisor

func (self *SAliyunGuestDriver) GetHypervisor() string

func (*SAliyunGuestDriver) GetInstanceCapability

func (self *SAliyunGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SAliyunGuestDriver) GetMinimalSysDiskSizeGb

func (self *SAliyunGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SAliyunGuestDriver) GetProvider

func (self *SAliyunGuestDriver) GetProvider() string

func (*SAliyunGuestDriver) GetRebuildRootStatus

func (self *SAliyunGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SAliyunGuestDriver) GetStorageTypes

func (self *SAliyunGuestDriver) GetStorageTypes() []string

func (*SAliyunGuestDriver) IsSupportPublicIp

func (self *SAliyunGuestDriver) IsSupportPublicIp() bool

func (*SAliyunGuestDriver) IsSupportPublicipToEip

func (self *SAliyunGuestDriver) IsSupportPublicipToEip() bool

func (*SAliyunGuestDriver) IsSupportSetAutoRenew

func (self *SAliyunGuestDriver) IsSupportSetAutoRenew() bool

func (*SAliyunGuestDriver) IsSupportedBillingCycle

func (self *SAliyunGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SAliyunGuestDriver) RemoteActionAfterGuestCreated

func (self *SAliyunGuestDriver) RemoteActionAfterGuestCreated(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, iVM cloudprovider.ICloudVM, desc *cloudprovider.SManagedVMCreateConfig)

func (*SAliyunGuestDriver) ValidateCreateData

func (self *SAliyunGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SAliyunGuestDriver) ValidateResizeDisk

func (self *SAliyunGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SApsaraGuestDriver

type SApsaraGuestDriver struct {
	SAliyunGuestDriver
}

func (*SApsaraGuestDriver) AllowReconfigGuest

func (self *SApsaraGuestDriver) AllowReconfigGuest() bool

func (*SApsaraGuestDriver) DoScheduleSKUFilter

func (self *SApsaraGuestDriver) DoScheduleSKUFilter() bool

func (*SApsaraGuestDriver) GetComputeQuotaKeys

func (self *SApsaraGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SApsaraGuestDriver) GetGuestInitialStateAfterCreate

func (self *SApsaraGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SApsaraGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SApsaraGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SApsaraGuestDriver) GetHypervisor

func (self *SApsaraGuestDriver) GetHypervisor() string

func (*SApsaraGuestDriver) GetProvider

func (self *SApsaraGuestDriver) GetProvider() string

func (*SApsaraGuestDriver) IsSupportPublicipToEip

func (self *SApsaraGuestDriver) IsSupportPublicipToEip() bool

func (*SApsaraGuestDriver) IsSupportSetAutoRenew

func (self *SApsaraGuestDriver) IsSupportSetAutoRenew() bool

func (*SApsaraGuestDriver) IsSupportedBillingCycle

func (self *SApsaraGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

type SAwsGuestDriver

type SAwsGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SAwsGuestDriver) ChooseHostStorage

func (self *SAwsGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SAwsGuestDriver) GetAttachDiskStatus

func (self *SAwsGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SAwsGuestDriver) GetChangeConfigStatus

func (self *SAwsGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SAwsGuestDriver) GetComputeQuotaKeys

func (self *SAwsGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SAwsGuestDriver) GetDefaultAccount

func (self *SAwsGuestDriver) GetDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string

func (*SAwsGuestDriver) GetDefaultSysDiskBackend

func (self *SAwsGuestDriver) GetDefaultSysDiskBackend() string

func (*SAwsGuestDriver) GetDeployStatus

func (self *SAwsGuestDriver) GetDeployStatus() ([]string, error)

func (*SAwsGuestDriver) GetDetachDiskStatus

func (self *SAwsGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SAwsGuestDriver) GetGuestInitialStateAfterCreate

func (self *SAwsGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SAwsGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SAwsGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SAwsGuestDriver) GetHypervisor

func (self *SAwsGuestDriver) GetHypervisor() string

func (*SAwsGuestDriver) GetInstanceCapability

func (self *SAwsGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SAwsGuestDriver) GetMinimalSysDiskSizeGb

func (self *SAwsGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SAwsGuestDriver) GetProvider

func (self *SAwsGuestDriver) GetProvider() string

func (*SAwsGuestDriver) GetRebuildRootStatus

func (self *SAwsGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SAwsGuestDriver) GetStorageTypes

func (self *SAwsGuestDriver) GetStorageTypes() []string

func (*SAwsGuestDriver) GetWindowsUserDataType

func (self *SAwsGuestDriver) GetWindowsUserDataType() string

func (*SAwsGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SAwsGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SAwsGuestDriver) IsSupportedBillingCycle

func (self *SAwsGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SAwsGuestDriver) IsWindowsUserDataTypeNeedEncode

func (self *SAwsGuestDriver) IsWindowsUserDataTypeNeedEncode() bool

func (*SAwsGuestDriver) ValidateCreateData

func (self *SAwsGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SAwsGuestDriver) ValidateResizeDisk

func (self *SAwsGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SAzureGuestDriver

type SAzureGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SAzureGuestDriver) ChooseHostStorage

func (self *SAzureGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SAzureGuestDriver) GetAttachDiskStatus

func (self *SAzureGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SAzureGuestDriver) GetChangeConfigStatus

func (self *SAzureGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SAzureGuestDriver) GetComputeQuotaKeys

func (self *SAzureGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SAzureGuestDriver) GetDefaultAccount

func (self *SAzureGuestDriver) GetDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string

func (*SAzureGuestDriver) GetDefaultSysDiskBackend

func (self *SAzureGuestDriver) GetDefaultSysDiskBackend() string

func (*SAzureGuestDriver) GetDeployStatus

func (self *SAzureGuestDriver) GetDeployStatus() ([]string, error)

func (*SAzureGuestDriver) GetDetachDiskStatus

func (self *SAzureGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SAzureGuestDriver) GetGuestInitialStateAfterCreate

func (self *SAzureGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SAzureGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SAzureGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SAzureGuestDriver) GetHypervisor

func (self *SAzureGuestDriver) GetHypervisor() string

func (*SAzureGuestDriver) GetInstanceCapability

func (self *SAzureGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SAzureGuestDriver) GetMaxSecurityGroupCount

func (self *SAzureGuestDriver) GetMaxSecurityGroupCount() int

func (*SAzureGuestDriver) GetMinimalSysDiskSizeGb

func (self *SAzureGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SAzureGuestDriver) GetProvider

func (self *SAzureGuestDriver) GetProvider() string

func (*SAzureGuestDriver) GetRebuildRootStatus

func (self *SAzureGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SAzureGuestDriver) GetStorageTypes

func (self *SAzureGuestDriver) GetStorageTypes() []string

func (*SAzureGuestDriver) IsNeedRestartForResetLoginInfo

func (self *SAzureGuestDriver) IsNeedRestartForResetLoginInfo() bool

func (*SAzureGuestDriver) IsRebuildRootSupportChangeUEFI

func (self *SAzureGuestDriver) IsRebuildRootSupportChangeUEFI() bool

func (*SAzureGuestDriver) IsSupportedBillingCycle

func (self *SAzureGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SAzureGuestDriver) ValidateCreateData

func (self *SAzureGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SAzureGuestDriver) ValidateImage

func (self *SAzureGuestDriver) ValidateImage(ctx context.Context, image *cloudprovider.SImage) error

func (*SAzureGuestDriver) ValidateResizeDisk

func (self *SAzureGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SBaremetalGuestDriver

type SBaremetalGuestDriver struct {
	SBaseGuestDriver
}

func (*SBaremetalGuestDriver) Attach2RandomNetwork

func (self *SBaremetalGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, netConfig *api.NetworkConfig, pendingUsage quotas.IQuota) ([]models.SGuestnetwork, error)

func (*SBaremetalGuestDriver) CanKeepDetachDisk

func (self *SBaremetalGuestDriver) CanKeepDetachDisk() bool

func (*SBaremetalGuestDriver) CheckDiskTemplateOnStorage

func (self *SBaremetalGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, format string, storageId string, task taskman.ITask) error

func (*SBaremetalGuestDriver) ChooseHostStorage

func (self *SBaremetalGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SBaremetalGuestDriver) GetChangeConfigStatus

func (self *SBaremetalGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SBaremetalGuestDriver) GetComputeQuotaKeys

func (self *SBaremetalGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SBaremetalGuestDriver) GetDefaultSysDiskBackend

func (self *SBaremetalGuestDriver) GetDefaultSysDiskBackend() string

func (*SBaremetalGuestDriver) GetDeployStatus

func (self *SBaremetalGuestDriver) GetDeployStatus() ([]string, error)

func (*SBaremetalGuestDriver) GetGuestVncInfo

func (*SBaremetalGuestDriver) GetHypervisor

func (self *SBaremetalGuestDriver) GetHypervisor() string

func (*SBaremetalGuestDriver) GetInstanceCapability

func (self *SBaremetalGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SBaremetalGuestDriver) GetJsonDescAtHost

func (self *SBaremetalGuestDriver) GetJsonDescAtHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (*SBaremetalGuestDriver) GetMaxSecurityGroupCount

func (self *SBaremetalGuestDriver) GetMaxSecurityGroupCount() int

func (*SBaremetalGuestDriver) GetMaxVCpuCount

func (self *SBaremetalGuestDriver) GetMaxVCpuCount() int

func (*SBaremetalGuestDriver) GetMaxVMemSizeGB

func (self *SBaremetalGuestDriver) GetMaxVMemSizeGB() int

func (*SBaremetalGuestDriver) GetMinimalSysDiskSizeGb

func (self *SBaremetalGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SBaremetalGuestDriver) GetNamedNetworkConfiguration

func (self *SBaremetalGuestDriver) GetNamedNetworkConfiguration(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, netConfig *api.NetworkConfig) (*models.SNetwork, []models.SNicConfig, api.IPAllocationDirection, bool, error)

func (*SBaremetalGuestDriver) GetProvider

func (self *SBaremetalGuestDriver) GetProvider() string

func (*SBaremetalGuestDriver) GetRandomNetworkTypes

func (self *SBaremetalGuestDriver) GetRandomNetworkTypes() []string

func (*SBaremetalGuestDriver) GetRebuildRootStatus

func (self *SBaremetalGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SBaremetalGuestDriver) GetStorageTypes

func (self *SBaremetalGuestDriver) GetStorageTypes() []string

func (*SBaremetalGuestDriver) IsDisableImageCache

func (self *SBaremetalGuestDriver) IsDisableImageCache(gst *models.SGuest) (bool, error)

func (*SBaremetalGuestDriver) IsSupportCdrom

func (self *SBaremetalGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SBaremetalGuestDriver) IsSupportFloppy

func (self *SBaremetalGuestDriver) IsSupportFloppy(guest *models.SGuest) (bool, error)

func (*SBaremetalGuestDriver) IsSupportGuestClone

func (self *SBaremetalGuestDriver) IsSupportGuestClone() bool

func (*SBaremetalGuestDriver) NeedRequestGuestHotAddIso

func (self *SBaremetalGuestDriver) NeedRequestGuestHotAddIso(ctx context.Context, guest *models.SGuest) bool

func (*SBaremetalGuestDriver) OnDeleteGuestFinalCleanup

func (self *SBaremetalGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error

func (*SBaremetalGuestDriver) OnGuestDeployTaskDataReceived

func (self *SBaremetalGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error

func (*SBaremetalGuestDriver) PerformStart

func (self *SBaremetalGuestDriver) PerformStart(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, data *jsonutils.JSONDict) error

func (*SBaremetalGuestDriver) PrepareDiskRaidConfig

func (self *SBaremetalGuestDriver) PrepareDiskRaidConfig(userCred mcclient.TokenCredential, host *models.SHost, confs []*api.BaremetalDiskConfig, disks []*api.DiskConfig) ([]*api.DiskConfig, error)

func (*SBaremetalGuestDriver) RequestDeployGuestOnHost

func (self *SBaremetalGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestGuestCreateAllDisks

func (self *SBaremetalGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestGuestCreateInsertIso

func (self *SBaremetalGuestDriver) RequestGuestCreateInsertIso(ctx context.Context, imageId string, guest *models.SGuest, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestGuestHotAddIso

func (self *SBaremetalGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestGuestHotRemoveIso

func (self *SBaremetalGuestDriver) RequestGuestHotRemoveIso(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestRebuildRootDisk

func (self *SBaremetalGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestStartOnHost

func (self *SBaremetalGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestStopGuestForDelete

func (self *SBaremetalGuestDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest,
	host *models.SHost, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestStopOnHost

func (self *SBaremetalGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask, syncStatus bool) error

func (*SBaremetalGuestDriver) RequestSyncConfigOnHost

func (self *SBaremetalGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestSyncstatusOnHost

func (self *SBaremetalGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestUndeployGuestOnHost

func (self *SBaremetalGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SBaremetalGuestDriver) StartGuestAttachDiskTask

func (self *SBaremetalGuestDriver) StartGuestAttachDiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestDetachdiskTask

func (self *SBaremetalGuestDriver) StartGuestDetachdiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestResetTask

func (self *SBaremetalGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isHard bool, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestSaveGuestImage

func (self *SBaremetalGuestDriver) StartGuestSaveGuestImage(ctx context.Context, userCred mcclient.TokenCredential,
	guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestSaveImage

func (self *SBaremetalGuestDriver) StartGuestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestStopTask

func (self *SBaremetalGuestDriver) StartGuestStopTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartGuestSyncstatusTask

func (self *SBaremetalGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error

func (*SBaremetalGuestDriver) StartResumeTask

func (self *SBaremetalGuestDriver) StartResumeTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) StartSuspendTask

func (self *SBaremetalGuestDriver) StartSuspendTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaremetalGuestDriver) ValidateCreateData

func (self *SBaremetalGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SBaremetalGuestDriver) ValidateCreateDataOnHost

func (self *SBaremetalGuestDriver) ValidateCreateDataOnHost(ctx context.Context, userCred mcclient.TokenCredential, bmName string, host *models.SHost, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SBaremetalGuestDriver) ValidateResizeDisk

func (self *SBaremetalGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SBaseGuestDriver

type SBaseGuestDriver struct {
	SBaseGuestScheduleDriver
}

func (*SBaseGuestDriver) AllowReconfigGuest

func (self *SBaseGuestDriver) AllowReconfigGuest() bool

func (*SBaseGuestDriver) CancelExpireTime

func (self *SBaseGuestDriver) CancelExpireTime(
	ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest) error

func (*SBaseGuestDriver) CheckLiveMigrate

func (self *SBaseGuestDriver) CheckLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestLiveMigrateInput) error

func (*SBaseGuestDriver) CheckMigrate

func (self *SBaseGuestDriver) CheckMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestMigrateInput) error

func (*SBaseGuestDriver) DoGuestCreateDisksTask

func (self *SBaseGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) GetAttachDiskStatus

func (self *SBaseGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SBaseGuestDriver) GetChangeConfigStatus

func (self *SBaseGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SBaseGuestDriver) GetDefaultAccount

func (self *SBaseGuestDriver) GetDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string

func (*SBaseGuestDriver) GetDeployStatus

func (self *SBaseGuestDriver) GetDeployStatus() ([]string, error)

func (*SBaseGuestDriver) GetDetachDiskStatus

func (self *SBaseGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SBaseGuestDriver) GetGuestInitialStateAfterCreate

func (self *SBaseGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SBaseGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SBaseGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SBaseGuestDriver) GetMaxSecurityGroupCount

func (self *SBaseGuestDriver) GetMaxSecurityGroupCount() int

func (*SBaseGuestDriver) GetRebuildRootStatus

func (self *SBaseGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SBaseGuestDriver) GetUserDataType

func (self *SBaseGuestDriver) GetUserDataType() string

func (*SBaseGuestDriver) GetWindowsUserDataType

func (self *SBaseGuestDriver) GetWindowsUserDataType() string

func (*SBaseGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SBaseGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SBaseGuestDriver) IsNeedRestartForResetLoginInfo

func (self *SBaseGuestDriver) IsNeedRestartForResetLoginInfo() bool

func (*SBaseGuestDriver) IsRebuildRootSupportChangeImage

func (self *SBaseGuestDriver) IsRebuildRootSupportChangeImage() bool

func (*SBaseGuestDriver) IsRebuildRootSupportChangeUEFI

func (self *SBaseGuestDriver) IsRebuildRootSupportChangeUEFI() bool

func (*SBaseGuestDriver) IsSupportEip

func (self *SBaseGuestDriver) IsSupportEip() bool

func (*SBaseGuestDriver) IsSupportGuestClone

func (self *SBaseGuestDriver) IsSupportGuestClone() bool

func (*SBaseGuestDriver) IsSupportLiveMigrate

func (self *SBaseGuestDriver) IsSupportLiveMigrate() bool

func (*SBaseGuestDriver) IsSupportMigrate

func (self *SBaseGuestDriver) IsSupportMigrate() bool

func (*SBaseGuestDriver) IsSupportPostpaidExpire

func (self *SBaseGuestDriver) IsSupportPostpaidExpire() bool

func (*SBaseGuestDriver) IsSupportPublicIp

func (self *SBaseGuestDriver) IsSupportPublicIp() bool

func (*SBaseGuestDriver) IsSupportPublicipToEip

func (self *SBaseGuestDriver) IsSupportPublicipToEip() bool

func (*SBaseGuestDriver) IsSupportSetAutoRenew

func (self *SBaseGuestDriver) IsSupportSetAutoRenew() bool

func (*SBaseGuestDriver) IsSupportdDcryptPasswordFromSecretKey

func (self *SBaseGuestDriver) IsSupportdDcryptPasswordFromSecretKey() bool

func (*SBaseGuestDriver) IsSupportedBillingCycle

func (self *SBaseGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SBaseGuestDriver) IsWindowsUserDataTypeNeedEncode

func (self *SBaseGuestDriver) IsWindowsUserDataTypeNeedEncode() bool

func (*SBaseGuestDriver) NeedRequestGuestHotAddIso

func (self *SBaseGuestDriver) NeedRequestGuestHotAddIso(ctx context.Context, guest *models.SGuest) bool

func (*SBaseGuestDriver) NeedRequestGuestHotAddVfd

func (self *SBaseGuestDriver) NeedRequestGuestHotAddVfd(ctx context.Context, guest *models.SGuest) bool

func (*SBaseGuestDriver) NeedStopForChangeSpec

func (self *SBaseGuestDriver) NeedStopForChangeSpec(ctx context.Context, guest *models.SGuest, cpuChanged, memChanged bool) bool

func (*SBaseGuestDriver) OnDeleteGuestFinalCleanup

func (self *SBaseGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error

func (*SBaseGuestDriver) OnGuestChangeCpuMemFailed

func (self *SBaseGuestDriver) OnGuestChangeCpuMemFailed(ctx context.Context, guest *models.SGuest, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SBaseGuestDriver) OnGuestCreateTaskComplete

func (self *SBaseGuestDriver) OnGuestCreateTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) QgaRequestGuestPing

func (self *SBaseGuestDriver) QgaRequestGuestPing(ctx context.Context, task taskman.ITask, host *models.SHost, guest *models.SGuest) error

func (*SBaseGuestDriver) QgaRequestSetUserPassword

func (self *SBaseGuestDriver) QgaRequestSetUserPassword(ctx context.Context, task taskman.ITask, host *models.SHost, guest *models.SGuest, input *api.ServerQgaSetPasswordInput) error

func (*SBaseGuestDriver) RemoteActionAfterGuestCreated

func (self *SBaseGuestDriver) RemoteActionAfterGuestCreated(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, ivm cloudprovider.ICloudVM, desc *cloudprovider.SManagedVMCreateConfig)

func (*SBaseGuestDriver) RemoteDeployGuestForCreate

func (self *SBaseGuestDriver) RemoteDeployGuestForCreate(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, desc cloudprovider.SManagedVMCreateConfig) (jsonutils.JSONObject, error)

func (*SBaseGuestDriver) RemoteDeployGuestForDeploy

func (*SBaseGuestDriver) RemoteDeployGuestForRebuildRoot

func (self *SBaseGuestDriver) RemoteDeployGuestForRebuildRoot(ctx context.Context, guest *models.SGuest, ihost cloudprovider.ICloudHost, task taskman.ITask, desc cloudprovider.SManagedVMCreateConfig) (jsonutils.JSONObject, error)

func (*SBaseGuestDriver) RemoteDeployGuestSyncHost

func (self *SBaseGuestDriver) RemoteDeployGuestSyncHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, iVM cloudprovider.ICloudVM) (cloudprovider.ICloudHost, error)

func (*SBaseGuestDriver) RequestAttachDisk

func (self *SBaseGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SBaseGuestDriver) RequestCPUSet

func (self *SBaseGuestDriver) RequestCPUSet(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, input *api.ServerCPUSetInput) (*api.ServerCPUSetResp, error)

func (*SBaseGuestDriver) RequestCPUSetRemove

func (self *SBaseGuestDriver) RequestCPUSetRemove(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, input *api.ServerCPUSetRemoveInput) error

func (*SBaseGuestDriver) RequestChangeDiskStorage

func (self *SBaseGuestDriver) RequestChangeDiskStorage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInternalInput, task taskman.ITask) error

func (*SBaseGuestDriver) RequestChangeVmConfig

func (self *SBaseGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, instanceType string, vcpuCount, vmemSize int64) error

func (*SBaseGuestDriver) RequestConvertPublicipToEip

func (self *SBaseGuestDriver) RequestConvertPublicipToEip(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestDeleteDetachedDisk

func (self *SBaseGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error

func (*SBaseGuestDriver) RequestDeleteSnapshot

func (self *SBaseGuestDriver) RequestDeleteSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, params *jsonutils.JSONDict) error

func (*SBaseGuestDriver) RequestDetachDisk

func (self *SBaseGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SBaseGuestDriver) RequestDetachDisksFromGuestForDelete

func (self *SBaseGuestDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestDiskSnapshot

func (self *SBaseGuestDriver) RequestDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, snapshotId, diskId string) error

func (*SBaseGuestDriver) RequestGuestCreateAllDisks

func (self *SBaseGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestGuestHotAddIso

func (self *SBaseGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SBaseGuestDriver) RequestGuestHotAddVfd

func (self *SBaseGuestDriver) RequestGuestHotAddVfd(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SBaseGuestDriver) RequestGuestHotRemoveIso

func (self *SBaseGuestDriver) RequestGuestHotRemoveIso(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestGuestHotRemoveVfd

func (self *SBaseGuestDriver) RequestGuestHotRemoveVfd(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestLiveMigrate

func (self *SBaseGuestDriver) RequestLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SBaseGuestDriver) RequestMigrate

func (self *SBaseGuestDriver) RequestMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SBaseGuestDriver) RequestQgaCommand

func (self *SBaseGuestDriver) RequestQgaCommand(ctx context.Context, userCred mcclient.TokenCredential, body jsonutils.JSONObject, host *models.SHost, guest *models.SGuest) (jsonutils.JSONObject, error)

func (*SBaseGuestDriver) RequestRebuildRootDisk

func (self *SBaseGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestReloadDiskSnapshot

func (self *SBaseGuestDriver) RequestReloadDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, params *jsonutils.JSONDict) error

func (*SBaseGuestDriver) RequestRemoteUpdate

func (self *SBaseGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SBaseGuestDriver) RequestRenewInstance

func (self *SBaseGuestDriver) RequestRenewInstance(ctx context.Context, guest *models.SGuest, bc billing.SBillingCycle) (time.Time, error)

func (*SBaseGuestDriver) RequestResumeOnHost

func (self *SBaseGuestDriver) RequestResumeOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSaveImage

func (self *SBaseGuestDriver) RequestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSetAutoRenewInstance

func (self *SBaseGuestDriver) RequestSetAutoRenewInstance(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input api.GuestAutoRenewInput, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSoftReset

func (self *SBaseGuestDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSuspendOnHost

func (self *SBaseGuestDriver) RequestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSwitchToTargetStorageDisk

func (self *SBaseGuestDriver) RequestSwitchToTargetStorageDisk(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInternalInput, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSyncConfigOnHost

func (self *SBaseGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSyncIsolatedDevice

func (self *SBaseGuestDriver) RequestSyncIsolatedDevice(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSyncSecgroupsOnHost

func (self *SBaseGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SBaseGuestDriver) RequestSyncToBackup

func (self *SBaseGuestDriver) RequestSyncToBackup(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaseGuestDriver) StartChangeDiskStorageTask

func (self *SBaseGuestDriver) StartChangeDiskStorageTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, params *api.ServerChangeDiskStorageInternalInput, parentTaskId string) error

func (*SBaseGuestDriver) StartDeleteGuestTask

func (self *SBaseGuestDriver) StartDeleteGuestTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SBaseGuestDriver) StartGuestCreateTask

func (self *SBaseGuestDriver) StartGuestCreateTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, pendingUsage quotas.IQuota, parentTaskId string) error

func (*SBaseGuestDriver) StartGuestResetTask

func (self *SBaseGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isHard bool, parentTaskId string) error

func (*SBaseGuestDriver) StartGuestRestartTask

func (self *SBaseGuestDriver) StartGuestRestartTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isForce bool, parentTaskId string) error

func (*SBaseGuestDriver) ValidateChangeConfig

func (self *SBaseGuestDriver) ValidateChangeConfig(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, cpuChanged bool, memChanged bool, newDisks []*api.DiskConfig) error

func (*SBaseGuestDriver) ValidateChangeDiskStorage

func (self *SBaseGuestDriver) ValidateChangeDiskStorage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInput) error

func (*SBaseGuestDriver) ValidateCreateEip

func (self *SBaseGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SBaseGuestDriver) ValidateDetachDisk

func (self *SBaseGuestDriver) ValidateDetachDisk(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, disk *models.SDisk) error

func (*SBaseGuestDriver) ValidateDetachNetwork

func (self *SBaseGuestDriver) ValidateDetachNetwork(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest) error

func (*SBaseGuestDriver) ValidateImage

func (self *SBaseGuestDriver) ValidateImage(ctx context.Context, image *cloudprovider.SImage) error

func (*SBaseGuestDriver) ValidateRebuildRoot

func (self *SBaseGuestDriver) ValidateRebuildRoot(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerRebuildRootInput) (*api.ServerRebuildRootInput, error)

func (*SBaseGuestDriver) ValidateResizeDisk

func (self *SBaseGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

func (*SBaseGuestDriver) ValidateUpdateData

func (self *SBaseGuestDriver) ValidateUpdateData(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.ServerUpdateInput) (api.ServerUpdateInput, error)

type SBaseGuestScheduleDriver

type SBaseGuestScheduleDriver struct{}

func (SBaseGuestScheduleDriver) DoScheduleCPUFilter

func (d SBaseGuestScheduleDriver) DoScheduleCPUFilter() bool

func (SBaseGuestScheduleDriver) DoScheduleCloudproviderTagFilter

func (d SBaseGuestScheduleDriver) DoScheduleCloudproviderTagFilter() bool

func (SBaseGuestScheduleDriver) DoScheduleMemoryFilter

func (d SBaseGuestScheduleDriver) DoScheduleMemoryFilter() bool

func (SBaseGuestScheduleDriver) DoScheduleSKUFilter

func (d SBaseGuestScheduleDriver) DoScheduleSKUFilter() bool

func (SBaseGuestScheduleDriver) DoScheduleStorageFilter

func (d SBaseGuestScheduleDriver) DoScheduleStorageFilter() bool

type SBingoCloudGuestDriver

type SBingoCloudGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SBingoCloudGuestDriver) GetComputeQuotaKeys

func (*SBingoCloudGuestDriver) GetDefaultSysDiskBackend

func (self *SBingoCloudGuestDriver) GetDefaultSysDiskBackend() string

func (*SBingoCloudGuestDriver) GetHypervisor

func (self *SBingoCloudGuestDriver) GetHypervisor() string

func (*SBingoCloudGuestDriver) GetInstanceCapability

func (self *SBingoCloudGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SBingoCloudGuestDriver) GetMinimalSysDiskSizeGb

func (self *SBingoCloudGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SBingoCloudGuestDriver) GetProvider

func (self *SBingoCloudGuestDriver) GetProvider() string

type SCloudpodsGuestDriver

type SCloudpodsGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SCloudpodsGuestDriver) DoScheduleCPUFilter

func (self *SCloudpodsGuestDriver) DoScheduleCPUFilter() bool

func (*SCloudpodsGuestDriver) DoScheduleMemoryFilter

func (self *SCloudpodsGuestDriver) DoScheduleMemoryFilter() bool

func (*SCloudpodsGuestDriver) DoScheduleSKUFilter

func (self *SCloudpodsGuestDriver) DoScheduleSKUFilter() bool

func (*SCloudpodsGuestDriver) DoScheduleStorageFilter

func (self *SCloudpodsGuestDriver) DoScheduleStorageFilter() bool

func (*SCloudpodsGuestDriver) GetAttachDiskStatus

func (self *SCloudpodsGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SCloudpodsGuestDriver) GetChangeConfigStatus

func (self *SCloudpodsGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SCloudpodsGuestDriver) GetComputeQuotaKeys

func (self *SCloudpodsGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SCloudpodsGuestDriver) GetDefaultSysDiskBackend

func (self *SCloudpodsGuestDriver) GetDefaultSysDiskBackend() string

func (*SCloudpodsGuestDriver) GetDeployStatus

func (self *SCloudpodsGuestDriver) GetDeployStatus() ([]string, error)

func (*SCloudpodsGuestDriver) GetDetachDiskStatus

func (self *SCloudpodsGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SCloudpodsGuestDriver) GetGuestInitialStateAfterCreate

func (self *SCloudpodsGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SCloudpodsGuestDriver) GetHypervisor

func (self *SCloudpodsGuestDriver) GetHypervisor() string

func (*SCloudpodsGuestDriver) GetInstanceCapability

func (self *SCloudpodsGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SCloudpodsGuestDriver) GetMinimalSysDiskSizeGb

func (self *SCloudpodsGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SCloudpodsGuestDriver) GetProvider

func (self *SCloudpodsGuestDriver) GetProvider() string

func (*SCloudpodsGuestDriver) GetRebuildRootStatus

func (self *SCloudpodsGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SCloudpodsGuestDriver) IsSupportCdrom

func (self *SCloudpodsGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SCloudpodsGuestDriver) IsSupportFloppy

func (self *SCloudpodsGuestDriver) IsSupportFloppy(guest *models.SGuest) (bool, error)

func (*SCloudpodsGuestDriver) IsSupportLiveMigrate

func (self *SCloudpodsGuestDriver) IsSupportLiveMigrate() bool

func (*SCloudpodsGuestDriver) IsSupportMigrate

func (self *SCloudpodsGuestDriver) IsSupportMigrate() bool

func (*SCloudpodsGuestDriver) ValidateResizeDisk

func (self *SCloudpodsGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SContainerDriver

type SContainerDriver struct {
	SVirtualizedGuestDriver
}

func (*SContainerDriver) CanKeepDetachDisk

func (self *SContainerDriver) CanKeepDetachDisk() bool

func (*SContainerDriver) DoGuestCreateDisksTask

func (self *SContainerDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) GetComputeQuotaKeys

func (self *SContainerDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

for backward compatibility, deprecated driver

func (*SContainerDriver) GetDefaultSysDiskBackend

func (self *SContainerDriver) GetDefaultSysDiskBackend() string

func (*SContainerDriver) GetGuestVncInfo

func (*SContainerDriver) GetHypervisor

func (self *SContainerDriver) GetHypervisor() string

func (*SContainerDriver) GetInstanceCapability

func (self *SContainerDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SContainerDriver) GetJsonDescAtHost

func (self *SContainerDriver) GetJsonDescAtHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (*SContainerDriver) GetMinimalSysDiskSizeGb

func (self *SContainerDriver) GetMinimalSysDiskSizeGb() int

func (*SContainerDriver) GetProvider

func (self *SContainerDriver) GetProvider() string

func (*SContainerDriver) GetRandomNetworkTypes

func (self *SContainerDriver) GetRandomNetworkTypes() []string

func (*SContainerDriver) IsSupportCdrom

func (self *SContainerDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SContainerDriver) IsSupportFloppy

func (self *SContainerDriver) IsSupportFloppy(guest *models.SGuest) (bool, error)

func (*SContainerDriver) IsSupportGuestClone

func (self *SContainerDriver) IsSupportGuestClone() bool

func (*SContainerDriver) OnDeleteGuestFinalCleanup

func (self *SContainerDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error

func (*SContainerDriver) OnGuestDeployTaskDataReceived

func (self *SContainerDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error

func (*SContainerDriver) RequestChangeVmConfig

func (self *SContainerDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, instanceType string, vcpuCount, vmemSize int64) error

func (*SContainerDriver) RequestDeployGuestOnHost

func (self *SContainerDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SContainerDriver) RequestDetachDisk

func (self *SContainerDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SContainerDriver) RequestDetachDisksFromGuestForDelete

func (self *SContainerDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) RequestGuestCreateAllDisks

func (self *SContainerDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) RequestGuestHotAddIso

func (self *SContainerDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SContainerDriver) RequestRebuildRootDisk

func (self *SContainerDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) RequestSoftReset

func (self *SContainerDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) RequestStartOnHost

func (self *SContainerDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SContainerDriver) RequestStopGuestForDelete

func (self *SContainerDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SContainerDriver) RequestStopOnHost

func (self *SContainerDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask, syncStatus bool) error

func (*SContainerDriver) RequestSyncConfigOnHost

func (self *SContainerDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SContainerDriver) RequestSyncstatusOnHost

func (self *SContainerDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SContainerDriver) RequestUndeployGuestOnHost

func (self *SContainerDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SContainerDriver) RqeuestSuspendOnHost

func (self *SContainerDriver) RqeuestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SContainerDriver) StartGuestRestartTask

func (self *SContainerDriver) StartGuestRestartTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isForce bool, parentTaskId string) error

type SCtyunGuestDriver

type SCtyunGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SCtyunGuestDriver) GetAttachDiskStatus

func (self *SCtyunGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SCtyunGuestDriver) GetChangeConfigStatus

func (self *SCtyunGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SCtyunGuestDriver) GetComputeQuotaKeys

func (self *SCtyunGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SCtyunGuestDriver) GetDefaultSysDiskBackend

func (self *SCtyunGuestDriver) GetDefaultSysDiskBackend() string

func (*SCtyunGuestDriver) GetDeployStatus

func (self *SCtyunGuestDriver) GetDeployStatus() ([]string, error)

func (*SCtyunGuestDriver) GetDetachDiskStatus

func (self *SCtyunGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SCtyunGuestDriver) GetGuestInitialStateAfterCreate

func (self *SCtyunGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SCtyunGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SCtyunGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SCtyunGuestDriver) GetHypervisor

func (self *SCtyunGuestDriver) GetHypervisor() string

func (*SCtyunGuestDriver) GetInstanceCapability

func (self *SCtyunGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SCtyunGuestDriver) GetMinimalSysDiskSizeGb

func (self *SCtyunGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SCtyunGuestDriver) GetProvider

func (self *SCtyunGuestDriver) GetProvider() string

func (*SCtyunGuestDriver) GetRebuildRootStatus

func (self *SCtyunGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SCtyunGuestDriver) ValidateResizeDisk

func (self *SCtyunGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SDiskInfo

type SDiskInfo struct {
	DiskType          string
	Size              int
	Uuid              string
	BillingType       string
	FsFromat          string
	AutoDelete        bool
	TemplateId        string
	DiskFormat        string
	Path              string
	Driver            string
	CacheMode         string
	ExpiredAt         time.Time
	StorageExternalId string

	Metadata map[string]string
}

type SESXiGuestDriver

type SESXiGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SESXiGuestDriver) AllowReconfigGuest

func (self *SESXiGuestDriver) AllowReconfigGuest() bool

func (*SESXiGuestDriver) CanKeepDetachDisk

func (self *SESXiGuestDriver) CanKeepDetachDisk() bool

func (*SESXiGuestDriver) CheckLiveMigrate

func (self *SESXiGuestDriver) CheckLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestLiveMigrateInput) error

func (*SESXiGuestDriver) CheckMigrate

func (self *SESXiGuestDriver) CheckMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestMigrateInput) error

func (*SESXiGuestDriver) ChooseHostStorage

func (self *SESXiGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SESXiGuestDriver) DoGuestCreateDisksTask

func (self *SESXiGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SESXiGuestDriver) DoScheduleCPUFilter

func (self *SESXiGuestDriver) DoScheduleCPUFilter() bool

func (*SESXiGuestDriver) DoScheduleMemoryFilter

func (self *SESXiGuestDriver) DoScheduleMemoryFilter() bool

func (*SESXiGuestDriver) DoScheduleSKUFilter

func (self *SESXiGuestDriver) DoScheduleSKUFilter() bool

func (*SESXiGuestDriver) DoScheduleStorageFilter

func (self *SESXiGuestDriver) DoScheduleStorageFilter() bool

func (*SESXiGuestDriver) GetAttachDiskStatus

func (self *SESXiGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SESXiGuestDriver) GetChangeConfigStatus

func (self *SESXiGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SESXiGuestDriver) GetComputeQuotaKeys

func (self *SESXiGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SESXiGuestDriver) GetDefaultSysDiskBackend

func (self *SESXiGuestDriver) GetDefaultSysDiskBackend() string

func (*SESXiGuestDriver) GetDeployStatus

func (self *SESXiGuestDriver) GetDeployStatus() ([]string, error)

func (*SESXiGuestDriver) GetDetachDiskStatus

func (self *SESXiGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SESXiGuestDriver) GetHypervisor

func (self *SESXiGuestDriver) GetHypervisor() string

func (*SESXiGuestDriver) GetInstanceCapability

func (self *SESXiGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SESXiGuestDriver) GetJsonDescAtHost

func (self *SESXiGuestDriver) GetJsonDescAtHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (*SESXiGuestDriver) GetMaxSecurityGroupCount

func (self *SESXiGuestDriver) GetMaxSecurityGroupCount() int

func (*SESXiGuestDriver) GetMinimalSysDiskSizeGb

func (self *SESXiGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SESXiGuestDriver) GetProvider

func (self *SESXiGuestDriver) GetProvider() string

func (*SESXiGuestDriver) GetRebuildRootStatus

func (self *SESXiGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SESXiGuestDriver) IsSupportCdrom

func (self *SESXiGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SESXiGuestDriver) IsSupportEip

func (self *SESXiGuestDriver) IsSupportEip() bool

func (*SESXiGuestDriver) IsSupportLiveMigrate

func (self *SESXiGuestDriver) IsSupportLiveMigrate() bool

func (*SESXiGuestDriver) IsSupportMigrate

func (self *SESXiGuestDriver) IsSupportMigrate() bool

func (*SESXiGuestDriver) OnGuestDeployTaskDataReceived

func (self *SESXiGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error

func (*SESXiGuestDriver) RequestDeployGuestOnHost

func (self *SESXiGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SESXiGuestDriver) RequestGuestHotAddIso

func (self *SESXiGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SESXiGuestDriver) RequestLiveMigrate

func (self *SESXiGuestDriver) RequestLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SESXiGuestDriver) RequestMigrate

func (self *SESXiGuestDriver) RequestMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SESXiGuestDriver) RequestRemoteUpdate

func (self *SESXiGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SESXiGuestDriver) RequestRenewInstance

func (self *SESXiGuestDriver) RequestRenewInstance(ctx context.Context, guest *models.SGuest, bc billing.SBillingCycle) (time.Time, error)

func (*SESXiGuestDriver) RequestResumeOnHost

func (self *SESXiGuestDriver) RequestResumeOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SESXiGuestDriver) RequestSaveImage

func (self *SESXiGuestDriver) RequestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SESXiGuestDriver) RequestStartOnHost

func (self *SESXiGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SESXiGuestDriver) RequestStopOnHost

func (self *SESXiGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask, syncStatus bool) error

func (*SESXiGuestDriver) RequestSuspendOnHost

func (self *SESXiGuestDriver) RequestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SESXiGuestDriver) RequestSyncSecgroupsOnHost

func (self *SESXiGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SESXiGuestDriver) RequestSyncstatusOnHost

func (self *SESXiGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SESXiGuestDriver) StartDeleteGuestTask

func (self *SESXiGuestDriver) StartDeleteGuestTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SESXiGuestDriver) ValidateCreateData

func (self *SESXiGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SESXiGuestDriver) ValidateCreateEip

func (self *SESXiGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SESXiGuestDriver) ValidateRebuildRoot

func (self *SESXiGuestDriver) ValidateRebuildRoot(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerRebuildRootInput) (*api.ServerRebuildRootInput, error)

func (*SESXiGuestDriver) ValidateResizeDisk

func (self *SESXiGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SEcloudGuestDriver

type SEcloudGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SEcloudGuestDriver) GetAttachDiskStatus

func (self *SEcloudGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SEcloudGuestDriver) GetChangeConfigStatus

func (self *SEcloudGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SEcloudGuestDriver) GetComputeQuotaKeys

func (self *SEcloudGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SEcloudGuestDriver) GetDefaultSysDiskBackend

func (self *SEcloudGuestDriver) GetDefaultSysDiskBackend() string

func (*SEcloudGuestDriver) GetDeployStatus

func (self *SEcloudGuestDriver) GetDeployStatus() ([]string, error)

func (*SEcloudGuestDriver) GetDetachDiskStatus

func (self *SEcloudGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SEcloudGuestDriver) GetGuestInitialStateAfterCreate

func (self *SEcloudGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SEcloudGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SEcloudGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SEcloudGuestDriver) GetHypervisor

func (self *SEcloudGuestDriver) GetHypervisor() string

func (*SEcloudGuestDriver) GetInstanceCapability

func (self *SEcloudGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SEcloudGuestDriver) GetMinimalSysDiskSizeGb

func (self *SEcloudGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SEcloudGuestDriver) GetProvider

func (self *SEcloudGuestDriver) GetProvider() string

func (*SEcloudGuestDriver) GetRebuildRootStatus

func (self *SEcloudGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SEcloudGuestDriver) ValidateResizeDisk

func (self *SEcloudGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SEsxiImageInfo

type SEsxiImageInfo struct {
	ImageType          string
	ImageExternalId    string
	StorageCacheHostIp string
}

type SEsxiInstanceSnapshotInfo

type SEsxiInstanceSnapshotInfo struct {
	InstanceSnapshotId string
	InstanceId         string
}

type SGoogleGuestDriver

type SGoogleGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SGoogleGuestDriver) AllowReconfigGuest

func (self *SGoogleGuestDriver) AllowReconfigGuest() bool

func (*SGoogleGuestDriver) ChooseHostStorage

func (self *SGoogleGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SGoogleGuestDriver) GetAttachDiskStatus

func (self *SGoogleGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SGoogleGuestDriver) GetChangeConfigStatus

func (self *SGoogleGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SGoogleGuestDriver) GetComputeQuotaKeys

func (self *SGoogleGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SGoogleGuestDriver) GetDefaultSysDiskBackend

func (self *SGoogleGuestDriver) GetDefaultSysDiskBackend() string

func (*SGoogleGuestDriver) GetDeployStatus

func (self *SGoogleGuestDriver) GetDeployStatus() ([]string, error)

func (*SGoogleGuestDriver) GetDetachDiskStatus

func (self *SGoogleGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SGoogleGuestDriver) GetGuestInitialStateAfterCreate

func (self *SGoogleGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SGoogleGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SGoogleGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SGoogleGuestDriver) GetHypervisor

func (self *SGoogleGuestDriver) GetHypervisor() string

func (*SGoogleGuestDriver) GetInstanceCapability

func (self *SGoogleGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SGoogleGuestDriver) GetMinimalSysDiskSizeGb

func (self *SGoogleGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SGoogleGuestDriver) GetProvider

func (self *SGoogleGuestDriver) GetProvider() string

func (*SGoogleGuestDriver) GetRebuildRootStatus

func (self *SGoogleGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SGoogleGuestDriver) GetStorageTypes

func (self *SGoogleGuestDriver) GetStorageTypes() []string

func (*SGoogleGuestDriver) GetUserDataType

func (self *SGoogleGuestDriver) GetUserDataType() string

谷歌云的用户自定义脚本不支持base64加密

func (*SGoogleGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SGoogleGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SGoogleGuestDriver) IsSupportedBillingCycle

func (self *SGoogleGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SGoogleGuestDriver) RemoteActionAfterGuestCreated

func (self *SGoogleGuestDriver) RemoteActionAfterGuestCreated(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, iVM cloudprovider.ICloudVM, desc *cloudprovider.SManagedVMCreateConfig)

func (*SGoogleGuestDriver) RequestStartOnHost

func (self *SGoogleGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SGoogleGuestDriver) ValidateCreateData

func (self *SGoogleGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SGoogleGuestDriver) ValidateResizeDisk

func (self *SGoogleGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SHCSGuestDriver

type SHCSGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SHCSGuestDriver) ChooseHostStorage

func (self *SHCSGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SHCSGuestDriver) DoScheduleSKUFilter

func (self *SHCSGuestDriver) DoScheduleSKUFilter() bool

func (*SHCSGuestDriver) DoScheduleStorageFilter

func (self *SHCSGuestDriver) DoScheduleStorageFilter() bool

func (*SHCSGuestDriver) GetAttachDiskStatus

func (self *SHCSGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SHCSGuestDriver) GetChangeConfigStatus

func (self *SHCSGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SHCSGuestDriver) GetComputeQuotaKeys

func (self *SHCSGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SHCSGuestDriver) GetDefaultSysDiskBackend

func (self *SHCSGuestDriver) GetDefaultSysDiskBackend() string

func (*SHCSGuestDriver) GetDeployStatus

func (self *SHCSGuestDriver) GetDeployStatus() ([]string, error)

func (*SHCSGuestDriver) GetDetachDiskStatus

func (self *SHCSGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SHCSGuestDriver) GetGuestInitialStateAfterCreate

func (self *SHCSGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SHCSGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SHCSGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SHCSGuestDriver) GetHypervisor

func (self *SHCSGuestDriver) GetHypervisor() string

func (*SHCSGuestDriver) GetInstanceCapability

func (self *SHCSGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SHCSGuestDriver) GetMinimalSysDiskSizeGb

func (self *SHCSGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SHCSGuestDriver) GetProvider

func (self *SHCSGuestDriver) GetProvider() string

func (*SHCSGuestDriver) GetRebuildRootStatus

func (self *SHCSGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SHCSGuestDriver) GetStorageTypes

func (self *SHCSGuestDriver) GetStorageTypes() []string

func (*SHCSGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SHCSGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SHCSGuestDriver) IsSupportSetAutoRenew

func (self *SHCSGuestDriver) IsSupportSetAutoRenew() bool

func (*SHCSGuestDriver) IsSupportedBillingCycle

func (self *SHCSGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SHCSGuestDriver) RemoteDeployGuestSyncHost

func (self *SHCSGuestDriver) RemoteDeployGuestSyncHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, iVM cloudprovider.ICloudVM) (cloudprovider.ICloudHost, error)

func (*SHCSGuestDriver) ValidateResizeDisk

func (self *SHCSGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SHCSOGuestDriver

type SHCSOGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SHCSOGuestDriver) ChooseHostStorage

func (self *SHCSOGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SHCSOGuestDriver) DoScheduleSKUFilter

func (self *SHCSOGuestDriver) DoScheduleSKUFilter() bool

func (*SHCSOGuestDriver) GetAttachDiskStatus

func (self *SHCSOGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SHCSOGuestDriver) GetChangeConfigStatus

func (self *SHCSOGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SHCSOGuestDriver) GetComputeQuotaKeys

func (self *SHCSOGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SHCSOGuestDriver) GetDefaultSysDiskBackend

func (self *SHCSOGuestDriver) GetDefaultSysDiskBackend() string

func (*SHCSOGuestDriver) GetDeployStatus

func (self *SHCSOGuestDriver) GetDeployStatus() ([]string, error)

func (*SHCSOGuestDriver) GetDetachDiskStatus

func (self *SHCSOGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SHCSOGuestDriver) GetGuestInitialStateAfterCreate

func (self *SHCSOGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SHCSOGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SHCSOGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SHCSOGuestDriver) GetHypervisor

func (self *SHCSOGuestDriver) GetHypervisor() string

func (*SHCSOGuestDriver) GetInstanceCapability

func (self *SHCSOGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SHCSOGuestDriver) GetMinimalSysDiskSizeGb

func (self *SHCSOGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SHCSOGuestDriver) GetProvider

func (self *SHCSOGuestDriver) GetProvider() string

func (*SHCSOGuestDriver) GetRebuildRootStatus

func (self *SHCSOGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SHCSOGuestDriver) GetStorageTypes

func (self *SHCSOGuestDriver) GetStorageTypes() []string

func (*SHCSOGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SHCSOGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SHCSOGuestDriver) IsSupportSetAutoRenew

func (self *SHCSOGuestDriver) IsSupportSetAutoRenew() bool

func (*SHCSOGuestDriver) IsSupportedBillingCycle

func (self *SHCSOGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SHCSOGuestDriver) RemoteDeployGuestSyncHost

func (self *SHCSOGuestDriver) RemoteDeployGuestSyncHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, iVM cloudprovider.ICloudVM) (cloudprovider.ICloudHost, error)

func (*SHCSOGuestDriver) ValidateResizeDisk

func (self *SHCSOGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SHuaweiGuestDriver

type SHuaweiGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SHuaweiGuestDriver) ChooseHostStorage

func (self *SHuaweiGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SHuaweiGuestDriver) GetAttachDiskStatus

func (self *SHuaweiGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SHuaweiGuestDriver) GetChangeConfigStatus

func (self *SHuaweiGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SHuaweiGuestDriver) GetComputeQuotaKeys

func (self *SHuaweiGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SHuaweiGuestDriver) GetDefaultSysDiskBackend

func (self *SHuaweiGuestDriver) GetDefaultSysDiskBackend() string

func (*SHuaweiGuestDriver) GetDeployStatus

func (self *SHuaweiGuestDriver) GetDeployStatus() ([]string, error)

func (*SHuaweiGuestDriver) GetDetachDiskStatus

func (self *SHuaweiGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SHuaweiGuestDriver) GetGuestInitialStateAfterCreate

func (self *SHuaweiGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SHuaweiGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SHuaweiGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SHuaweiGuestDriver) GetHypervisor

func (self *SHuaweiGuestDriver) GetHypervisor() string

func (*SHuaweiGuestDriver) GetInstanceCapability

func (self *SHuaweiGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SHuaweiGuestDriver) GetMinimalSysDiskSizeGb

func (self *SHuaweiGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SHuaweiGuestDriver) GetProvider

func (self *SHuaweiGuestDriver) GetProvider() string

func (*SHuaweiGuestDriver) GetRebuildRootStatus

func (self *SHuaweiGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SHuaweiGuestDriver) GetStorageTypes

func (self *SHuaweiGuestDriver) GetStorageTypes() []string

func (*SHuaweiGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SHuaweiGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SHuaweiGuestDriver) IsSupportSetAutoRenew

func (self *SHuaweiGuestDriver) IsSupportSetAutoRenew() bool

func (*SHuaweiGuestDriver) IsSupportedBillingCycle

func (self *SHuaweiGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SHuaweiGuestDriver) ValidateResizeDisk

func (self *SHuaweiGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SInCloudSphereGuestDriver

type SInCloudSphereGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SInCloudSphereGuestDriver) DoScheduleSKUFilter

func (self *SInCloudSphereGuestDriver) DoScheduleSKUFilter() bool

func (*SInCloudSphereGuestDriver) GetAttachDiskStatus

func (self *SInCloudSphereGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SInCloudSphereGuestDriver) GetChangeConfigStatus

func (self *SInCloudSphereGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SInCloudSphereGuestDriver) GetComputeQuotaKeys

func (*SInCloudSphereGuestDriver) GetDefaultSysDiskBackend

func (self *SInCloudSphereGuestDriver) GetDefaultSysDiskBackend() string

func (*SInCloudSphereGuestDriver) GetDeployStatus

func (self *SInCloudSphereGuestDriver) GetDeployStatus() ([]string, error)

func (*SInCloudSphereGuestDriver) GetDetachDiskStatus

func (self *SInCloudSphereGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SInCloudSphereGuestDriver) GetHypervisor

func (self *SInCloudSphereGuestDriver) GetHypervisor() string

func (*SInCloudSphereGuestDriver) GetInstanceCapability

func (self *SInCloudSphereGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SInCloudSphereGuestDriver) GetMaxSecurityGroupCount

func (self *SInCloudSphereGuestDriver) GetMaxSecurityGroupCount() int

func (*SInCloudSphereGuestDriver) GetMinimalSysDiskSizeGb

func (self *SInCloudSphereGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SInCloudSphereGuestDriver) GetProvider

func (self *SInCloudSphereGuestDriver) GetProvider() string

func (*SInCloudSphereGuestDriver) GetRebuildRootStatus

func (self *SInCloudSphereGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SInCloudSphereGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SInCloudSphereGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SInCloudSphereGuestDriver) IsNeedRestartForResetLoginInfo

func (self *SInCloudSphereGuestDriver) IsNeedRestartForResetLoginInfo() bool

func (*SInCloudSphereGuestDriver) IsSupportCdrom

func (self *SInCloudSphereGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SInCloudSphereGuestDriver) IsSupportEip

func (self *SInCloudSphereGuestDriver) IsSupportEip() bool

func (*SInCloudSphereGuestDriver) RequestRemoteUpdate

func (self *SInCloudSphereGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SInCloudSphereGuestDriver) RequestSyncSecgroupsOnHost

func (self *SInCloudSphereGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SInCloudSphereGuestDriver) ValidateCreateData

func (*SInCloudSphereGuestDriver) ValidateCreateEip

func (self *SInCloudSphereGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SInCloudSphereGuestDriver) ValidateResizeDisk

func (self *SInCloudSphereGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SJDcloudGuestDriver

type SJDcloudGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SJDcloudGuestDriver) GetComputeQuotaKeys

func (self *SJDcloudGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SJDcloudGuestDriver) GetDefaultSysDiskBackend

func (self *SJDcloudGuestDriver) GetDefaultSysDiskBackend() string

func (*SJDcloudGuestDriver) GetHypervisor

func (self *SJDcloudGuestDriver) GetHypervisor() string

func (*SJDcloudGuestDriver) GetInstanceCapability

func (self *SJDcloudGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

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

func (*SJDcloudGuestDriver) GetMinimalSysDiskSizeGb

func (self *SJDcloudGuestDriver) GetMinimalSysDiskSizeGb() int

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

func (*SJDcloudGuestDriver) GetProvider

func (self *SJDcloudGuestDriver) GetProvider() string

func (*SJDcloudGuestDriver) IsSupportedBillingCycle

func (self *SJDcloudGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

type SKVMGuestDriver

type SKVMGuestDriver struct {
	SVirtualizedGuestDriver
}

func (*SKVMGuestDriver) CheckLiveMigrate

func (self *SKVMGuestDriver) CheckLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestLiveMigrateInput) error

func (*SKVMGuestDriver) CheckMigrate

func (self *SKVMGuestDriver) CheckMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestMigrateInput) error

func (*SKVMGuestDriver) DoGuestCreateDisksTask

func (self *SKVMGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) GetAttachDiskStatus

func (self *SKVMGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SKVMGuestDriver) GetChangeConfigStatus

func (self *SKVMGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SKVMGuestDriver) GetComputeQuotaKeys

func (self *SKVMGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SKVMGuestDriver) GetDefaultSysDiskBackend

func (self *SKVMGuestDriver) GetDefaultSysDiskBackend() string

func (*SKVMGuestDriver) GetDeployStatus

func (self *SKVMGuestDriver) GetDeployStatus() ([]string, error)

func (*SKVMGuestDriver) GetDetachDiskStatus

func (self *SKVMGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SKVMGuestDriver) GetGuestVncInfo

func (*SKVMGuestDriver) GetHypervisor

func (self *SKVMGuestDriver) GetHypervisor() string

func (*SKVMGuestDriver) GetInstanceCapability

func (self *SKVMGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SKVMGuestDriver) GetJsonDescAtHost

func (self *SKVMGuestDriver) GetJsonDescAtHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (*SKVMGuestDriver) GetMinimalSysDiskSizeGb

func (self *SKVMGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SKVMGuestDriver) GetProvider

func (self *SKVMGuestDriver) GetProvider() string

func (*SKVMGuestDriver) GetRebuildRootStatus

func (self *SKVMGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SKVMGuestDriver) IsSupportCdrom

func (self *SKVMGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SKVMGuestDriver) IsSupportEip

func (self *SKVMGuestDriver) IsSupportEip() bool

func (*SKVMGuestDriver) IsSupportFloppy

func (self *SKVMGuestDriver) IsSupportFloppy(guest *models.SGuest) (bool, error)

func (*SKVMGuestDriver) IsSupportLiveMigrate

func (self *SKVMGuestDriver) IsSupportLiveMigrate() bool

func (*SKVMGuestDriver) IsSupportMigrate

func (self *SKVMGuestDriver) IsSupportMigrate() bool

func (*SKVMGuestDriver) NeedRequestGuestHotAddIso

func (self *SKVMGuestDriver) NeedRequestGuestHotAddIso(ctx context.Context, guest *models.SGuest) bool

func (*SKVMGuestDriver) NeedRequestGuestHotAddVfd

func (self *SKVMGuestDriver) NeedRequestGuestHotAddVfd(ctx context.Context, guest *models.SGuest) bool

func (*SKVMGuestDriver) NeedStopForChangeSpec

func (self *SKVMGuestDriver) NeedStopForChangeSpec(ctx context.Context, guest *models.SGuest, cpuChanged, memChanged bool) bool

func (*SKVMGuestDriver) OnDeleteGuestFinalCleanup

func (self *SKVMGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error

func (*SKVMGuestDriver) OnGuestChangeCpuMemFailed

func (self *SKVMGuestDriver) OnGuestChangeCpuMemFailed(ctx context.Context, guest *models.SGuest, data *jsonutils.JSONDict, task taskman.ITask) error

kvm guest must add cpu first if body has add_cpu_failed indicate dosen't exec add mem 1. cpu added part of request --> add_cpu_failed: true && added_cpu: count 2. cpu added all of request add mem failed --> add_mem_failed: true

func (*SKVMGuestDriver) OnGuestDeployTaskDataReceived

func (self *SKVMGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error

func (*SKVMGuestDriver) QgaRequestGuestPing

func (self *SKVMGuestDriver) QgaRequestGuestPing(ctx context.Context, task taskman.ITask, host *models.SHost, guest *models.SGuest) error

func (*SKVMGuestDriver) QgaRequestSetUserPassword

func (self *SKVMGuestDriver) QgaRequestSetUserPassword(ctx context.Context, task taskman.ITask, host *models.SHost, guest *models.SGuest, input *api.ServerQgaSetPasswordInput) error

func (*SKVMGuestDriver) RequestAssociateEip

func (self *SKVMGuestDriver) RequestAssociateEip(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, eip *models.SElasticip, task taskman.ITask) error

func (*SKVMGuestDriver) RequestAttachDisk

func (self *SKVMGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SKVMGuestDriver) RequestCPUSet

func (self *SKVMGuestDriver) RequestCPUSet(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, input *api.ServerCPUSetInput) (*api.ServerCPUSetResp, error)

func (*SKVMGuestDriver) RequestCPUSetRemove

func (self *SKVMGuestDriver) RequestCPUSetRemove(ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, guest *models.SGuest, input *api.ServerCPUSetRemoveInput) error

func (*SKVMGuestDriver) RequestChangeDiskStorage

func (self *SKVMGuestDriver) RequestChangeDiskStorage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInternalInput, task taskman.ITask) error

func (*SKVMGuestDriver) RequestChangeVmConfig

func (self *SKVMGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, instanceType string, vcpuCount, vmemSize int64) error

func (*SKVMGuestDriver) RequestDeleteSnapshot

func (self *SKVMGuestDriver) RequestDeleteSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, params *jsonutils.JSONDict) error

func (*SKVMGuestDriver) RequestDeployGuestOnHost

func (self *SKVMGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SKVMGuestDriver) RequestDetachDisk

func (self *SKVMGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SKVMGuestDriver) RequestDetachDisksFromGuestForDelete

func (self *SKVMGuestDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestDiskSnapshot

func (self *SKVMGuestDriver) RequestDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, snapshotId, diskId string) error

func (*SKVMGuestDriver) RequestGuestCreateAllDisks

func (self *SKVMGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestGuestHotAddIso

func (self *SKVMGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SKVMGuestDriver) RequestGuestHotAddVfd

func (self *SKVMGuestDriver) RequestGuestHotAddVfd(ctx context.Context, guest *models.SGuest, path string, boot bool, task taskman.ITask) error

func (*SKVMGuestDriver) RequestGuestHotRemoveIso

func (self *SKVMGuestDriver) RequestGuestHotRemoveIso(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestGuestHotRemoveVfd

func (self *SKVMGuestDriver) RequestGuestHotRemoveVfd(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestQgaCommand

func (self *SKVMGuestDriver) RequestQgaCommand(ctx context.Context, userCred mcclient.TokenCredential, body jsonutils.JSONObject, host *models.SHost, guest *models.SGuest) (jsonutils.JSONObject, error)

func (*SKVMGuestDriver) RequestRebuildRootDisk

func (self *SKVMGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestReloadDiskSnapshot

func (self *SKVMGuestDriver) RequestReloadDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, params *jsonutils.JSONDict) error

func (*SKVMGuestDriver) RequestResumeOnHost

func (self *SKVMGuestDriver) RequestResumeOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSaveImage

func (self *SKVMGuestDriver) RequestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSoftReset

func (self *SKVMGuestDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestStartOnHost

func (self *SKVMGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SKVMGuestDriver) RequestStopOnHost

func (self *SKVMGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask, syncStatus bool) error

func (*SKVMGuestDriver) RequestSuspendOnHost

func (self *SKVMGuestDriver) RequestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSwitchToTargetStorageDisk

func (self *SKVMGuestDriver) RequestSwitchToTargetStorageDisk(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInternalInput, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSyncConfigOnHost

func (self *SKVMGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSyncIsolatedDevice

func (self *SKVMGuestDriver) RequestSyncIsolatedDevice(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSyncToBackup

func (self *SKVMGuestDriver) RequestSyncToBackup(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SKVMGuestDriver) RequestSyncstatusOnHost

func (self *SKVMGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SKVMGuestDriver) RequestUndeployGuestOnHost

func (self *SKVMGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SKVMGuestDriver) ValidateChangeDiskStorage

func (self *SKVMGuestDriver) ValidateChangeDiskStorage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input *api.ServerChangeDiskStorageInput) error

func (*SKVMGuestDriver) ValidateCreateData

func (self *SKVMGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SKVMGuestDriver) ValidateCreateEip

func (self *SKVMGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SKVMGuestDriver) ValidateDetachNetwork

func (self *SKVMGuestDriver) ValidateDetachNetwork(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest) error

func (*SKVMGuestDriver) ValidateResizeDisk

func (self *SKVMGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

func (*SKVMGuestDriver) ValidateUpdateData

func (self *SKVMGuestDriver) ValidateUpdateData(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.ServerUpdateInput) (api.ServerUpdateInput, error)

type SManagedVirtualizedGuestDriver

type SManagedVirtualizedGuestDriver struct {
	SVirtualizedGuestDriver
}

func (*SManagedVirtualizedGuestDriver) DoGuestCreateDisksTask

func (self *SManagedVirtualizedGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (SManagedVirtualizedGuestDriver) DoScheduleCPUFilter

func (d SManagedVirtualizedGuestDriver) DoScheduleCPUFilter() bool

func (SManagedVirtualizedGuestDriver) DoScheduleCloudproviderTagFilter

func (d SManagedVirtualizedGuestDriver) DoScheduleCloudproviderTagFilter() bool

func (SManagedVirtualizedGuestDriver) DoScheduleMemoryFilter

func (d SManagedVirtualizedGuestDriver) DoScheduleMemoryFilter() bool

func (SManagedVirtualizedGuestDriver) DoScheduleSKUFilter

func (d SManagedVirtualizedGuestDriver) DoScheduleSKUFilter() bool

func (SManagedVirtualizedGuestDriver) DoScheduleStorageFilter

func (d SManagedVirtualizedGuestDriver) DoScheduleStorageFilter() bool

func (*SManagedVirtualizedGuestDriver) GetGuestInitialStateAfterCreate

func (self *SManagedVirtualizedGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SManagedVirtualizedGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SManagedVirtualizedGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SManagedVirtualizedGuestDriver) GetGuestVncInfo

func (*SManagedVirtualizedGuestDriver) GetJsonDescAtHost

func (self *SManagedVirtualizedGuestDriver) GetJsonDescAtHost(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (*SManagedVirtualizedGuestDriver) IsSupportCdrom

func (self *SManagedVirtualizedGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SManagedVirtualizedGuestDriver) IsSupportEip

func (self *SManagedVirtualizedGuestDriver) IsSupportEip() bool

func (*SManagedVirtualizedGuestDriver) IsSupportFloppy

func (self *SManagedVirtualizedGuestDriver) IsSupportFloppy(guest *models.SGuest) (bool, error)

func (*SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived

func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error

func (*SManagedVirtualizedGuestDriver) RemoteDeployGuestForCreate

func (*SManagedVirtualizedGuestDriver) RemoteDeployGuestForDeploy

func (*SManagedVirtualizedGuestDriver) RemoteDeployGuestForRebuildRoot

func (*SManagedVirtualizedGuestDriver) RemoteDeployGuestSyncHost

func (*SManagedVirtualizedGuestDriver) RequestAttachDisk

func (self *SManagedVirtualizedGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestChangeVmConfig

func (self *SManagedVirtualizedGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, instanceType string, vcpuCount, vmemSize int64) error

func (*SManagedVirtualizedGuestDriver) RequestConvertPublicipToEip

func (self *SManagedVirtualizedGuestDriver) RequestConvertPublicipToEip(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost

func (self *SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestDetachDisk

func (self *SManagedVirtualizedGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, disk *models.SDisk, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks

func (self *SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestRebuildRootDisk

func (self *SManagedVirtualizedGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestRemoteUpdate

func (self *SManagedVirtualizedGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SManagedVirtualizedGuestDriver) RequestRenewInstance

func (self *SManagedVirtualizedGuestDriver) RequestRenewInstance(ctx context.Context, guest *models.SGuest, bc billing.SBillingCycle) (time.Time, error)

func (*SManagedVirtualizedGuestDriver) RequestSaveImage

func (self *SManagedVirtualizedGuestDriver) RequestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestSetAutoRenewInstance

func (self *SManagedVirtualizedGuestDriver) RequestSetAutoRenewInstance(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, input api.GuestAutoRenewInput, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestStartOnHost

func (self *SManagedVirtualizedGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestStopOnHost

func (self *SManagedVirtualizedGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask, syncStatus bool) error

func (*SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost

func (self *SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestSyncSecgroupsOnHost

func (self *SManagedVirtualizedGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost

func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestUndeployGuestOnHost

func (self *SManagedVirtualizedGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) ValidateCreateData

func (*SManagedVirtualizedGuestDriver) ValidateCreateEip

type SNutanixGuestDriver

type SNutanixGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SNutanixGuestDriver) AllowReconfigGuest

func (self *SNutanixGuestDriver) AllowReconfigGuest() bool

func (*SNutanixGuestDriver) CanKeepDetachDisk

func (self *SNutanixGuestDriver) CanKeepDetachDisk() bool

func (*SNutanixGuestDriver) ChooseHostStorage

func (self *SNutanixGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SNutanixGuestDriver) DoGuestCreateDisksTask

func (self *SNutanixGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SNutanixGuestDriver) DoScheduleCPUFilter

func (self *SNutanixGuestDriver) DoScheduleCPUFilter() bool

func (*SNutanixGuestDriver) DoScheduleMemoryFilter

func (self *SNutanixGuestDriver) DoScheduleMemoryFilter() bool

func (*SNutanixGuestDriver) DoScheduleSKUFilter

func (self *SNutanixGuestDriver) DoScheduleSKUFilter() bool

func (*SNutanixGuestDriver) DoScheduleStorageFilter

func (self *SNutanixGuestDriver) DoScheduleStorageFilter() bool

func (*SNutanixGuestDriver) GetAttachDiskStatus

func (self *SNutanixGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SNutanixGuestDriver) GetChangeConfigStatus

func (self *SNutanixGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SNutanixGuestDriver) GetComputeQuotaKeys

func (self *SNutanixGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SNutanixGuestDriver) GetDefaultSysDiskBackend

func (self *SNutanixGuestDriver) GetDefaultSysDiskBackend() string

func (*SNutanixGuestDriver) GetDeployStatus

func (self *SNutanixGuestDriver) GetDeployStatus() ([]string, error)

func (*SNutanixGuestDriver) GetDetachDiskStatus

func (self *SNutanixGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SNutanixGuestDriver) GetHypervisor

func (self *SNutanixGuestDriver) GetHypervisor() string

func (*SNutanixGuestDriver) GetInstanceCapability

func (self *SNutanixGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SNutanixGuestDriver) GetMaxSecurityGroupCount

func (self *SNutanixGuestDriver) GetMaxSecurityGroupCount() int

func (*SNutanixGuestDriver) GetMinimalSysDiskSizeGb

func (self *SNutanixGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SNutanixGuestDriver) GetProvider

func (self *SNutanixGuestDriver) GetProvider() string

func (*SNutanixGuestDriver) GetRebuildRootStatus

func (self *SNutanixGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SNutanixGuestDriver) GetUserDataType

func (self *SNutanixGuestDriver) GetUserDataType() string

func (*SNutanixGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SNutanixGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SNutanixGuestDriver) IsSupportCdrom

func (self *SNutanixGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SNutanixGuestDriver) IsSupportEip

func (self *SNutanixGuestDriver) IsSupportEip() bool

func (*SNutanixGuestDriver) RequestRemoteUpdate

func (self *SNutanixGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SNutanixGuestDriver) RequestRenewInstance

func (self *SNutanixGuestDriver) RequestRenewInstance(ctx context.Context, guest *models.SGuest, bc billing.SBillingCycle) (time.Time, error)

func (*SNutanixGuestDriver) RequestSyncSecgroupsOnHost

func (self *SNutanixGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SNutanixGuestDriver) ValidateCreateEip

func (self *SNutanixGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SNutanixGuestDriver) ValidateResizeDisk

func (self *SNutanixGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SOpenStackGuestDriver

type SOpenStackGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SOpenStackGuestDriver) AllowReconfigGuest

func (self *SOpenStackGuestDriver) AllowReconfigGuest() bool

func (*SOpenStackGuestDriver) CheckLiveMigrate

func (self *SOpenStackGuestDriver) CheckLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestLiveMigrateInput) error

func (*SOpenStackGuestDriver) CheckMigrate

func (self *SOpenStackGuestDriver) CheckMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestMigrateInput) error

func (*SOpenStackGuestDriver) ChooseHostStorage

func (self *SOpenStackGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SOpenStackGuestDriver) DoScheduleCPUFilter

func (self *SOpenStackGuestDriver) DoScheduleCPUFilter() bool

func (*SOpenStackGuestDriver) DoScheduleMemoryFilter

func (self *SOpenStackGuestDriver) DoScheduleMemoryFilter() bool

func (*SOpenStackGuestDriver) DoScheduleSKUFilter

func (self *SOpenStackGuestDriver) DoScheduleSKUFilter() bool

func (*SOpenStackGuestDriver) DoScheduleStorageFilter

func (self *SOpenStackGuestDriver) DoScheduleStorageFilter() bool

func (*SOpenStackGuestDriver) GetAttachDiskStatus

func (self *SOpenStackGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SOpenStackGuestDriver) GetChangeConfigStatus

func (self *SOpenStackGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SOpenStackGuestDriver) GetComputeQuotaKeys

func (self *SOpenStackGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SOpenStackGuestDriver) GetDefaultSysDiskBackend

func (self *SOpenStackGuestDriver) GetDefaultSysDiskBackend() string

func (*SOpenStackGuestDriver) GetDeployStatus

func (self *SOpenStackGuestDriver) GetDeployStatus() ([]string, error)

func (*SOpenStackGuestDriver) GetDetachDiskStatus

func (self *SOpenStackGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SOpenStackGuestDriver) GetGuestInitialStateAfterCreate

func (self *SOpenStackGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SOpenStackGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SOpenStackGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SOpenStackGuestDriver) GetHypervisor

func (self *SOpenStackGuestDriver) GetHypervisor() string

func (*SOpenStackGuestDriver) GetInstanceCapability

func (self *SOpenStackGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SOpenStackGuestDriver) GetMinimalSysDiskSizeGb

func (self *SOpenStackGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SOpenStackGuestDriver) GetProvider

func (self *SOpenStackGuestDriver) GetProvider() string

func (*SOpenStackGuestDriver) GetRebuildRootStatus

func (self *SOpenStackGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SOpenStackGuestDriver) GetStorageTypes

func (self *SOpenStackGuestDriver) GetStorageTypes() []string

func (*SOpenStackGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SOpenStackGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SOpenStackGuestDriver) IsNeedRestartForResetLoginInfo

func (self *SOpenStackGuestDriver) IsNeedRestartForResetLoginInfo() bool

func (*SOpenStackGuestDriver) IsRebuildRootSupportChangeImage

func (self *SOpenStackGuestDriver) IsRebuildRootSupportChangeImage() bool

func (*SOpenStackGuestDriver) IsSupportEip

func (self *SOpenStackGuestDriver) IsSupportEip() bool

func (*SOpenStackGuestDriver) IsSupportLiveMigrate

func (self *SOpenStackGuestDriver) IsSupportLiveMigrate() bool

func (*SOpenStackGuestDriver) IsSupportMigrate

func (self *SOpenStackGuestDriver) IsSupportMigrate() bool

func (*SOpenStackGuestDriver) IsSupportedBillingCycle

func (self *SOpenStackGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SOpenStackGuestDriver) IsWindowsUserDataTypeNeedEncode

func (self *SOpenStackGuestDriver) IsWindowsUserDataTypeNeedEncode() bool

func (*SOpenStackGuestDriver) RemoteDeployGuestForRebuildRoot

func (self *SOpenStackGuestDriver) RemoteDeployGuestForRebuildRoot(ctx context.Context, guest *models.SGuest, ihost cloudprovider.ICloudHost, task taskman.ITask, desc cloudprovider.SManagedVMCreateConfig) (jsonutils.JSONObject, error)

func (*SOpenStackGuestDriver) RequestLiveMigrate

func (self *SOpenStackGuestDriver) RequestLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SOpenStackGuestDriver) RequestMigrate

func (self *SOpenStackGuestDriver) RequestMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, data *jsonutils.JSONDict, task taskman.ITask) error

func (*SOpenStackGuestDriver) ValidateCreateData

func (self *SOpenStackGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SOpenStackGuestDriver) ValidateCreateEip

func (self *SOpenStackGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SOpenStackGuestDriver) ValidateResizeDisk

func (self *SOpenStackGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SProxmoxGuestDriver

type SProxmoxGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SProxmoxGuestDriver) DoScheduleSKUFilter

func (self *SProxmoxGuestDriver) DoScheduleSKUFilter() bool

func (*SProxmoxGuestDriver) GetAttachDiskStatus

func (self *SProxmoxGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SProxmoxGuestDriver) GetChangeConfigStatus

func (self *SProxmoxGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SProxmoxGuestDriver) GetComputeQuotaKeys

func (self *SProxmoxGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SProxmoxGuestDriver) GetDefaultSysDiskBackend

func (self *SProxmoxGuestDriver) GetDefaultSysDiskBackend() string

func (*SProxmoxGuestDriver) GetDeployStatus

func (self *SProxmoxGuestDriver) GetDeployStatus() ([]string, error)

func (*SProxmoxGuestDriver) GetDetachDiskStatus

func (self *SProxmoxGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SProxmoxGuestDriver) GetGuestInitialStateAfterCreate

func (self *SProxmoxGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SProxmoxGuestDriver) GetHypervisor

func (self *SProxmoxGuestDriver) GetHypervisor() string

func (*SProxmoxGuestDriver) GetInstanceCapability

func (self *SProxmoxGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SProxmoxGuestDriver) GetMaxSecurityGroupCount

func (self *SProxmoxGuestDriver) GetMaxSecurityGroupCount() int

func (*SProxmoxGuestDriver) GetMinimalSysDiskSizeGb

func (self *SProxmoxGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SProxmoxGuestDriver) GetProvider

func (self *SProxmoxGuestDriver) GetProvider() string

func (*SProxmoxGuestDriver) GetRebuildRootStatus

func (self *SProxmoxGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SProxmoxGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SProxmoxGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SProxmoxGuestDriver) IsSupportCdrom

func (self *SProxmoxGuestDriver) IsSupportCdrom(guest *models.SGuest) (bool, error)

func (*SProxmoxGuestDriver) IsSupportEip

func (self *SProxmoxGuestDriver) IsSupportEip() bool

func (*SProxmoxGuestDriver) RequestRemoteUpdate

func (self *SProxmoxGuestDriver) RequestRemoteUpdate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, replaceTags bool) error

func (*SProxmoxGuestDriver) RequestSyncSecgroupsOnHost

func (self *SProxmoxGuestDriver) RequestSyncSecgroupsOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SProxmoxGuestDriver) ValidateCreateEip

func (self *SProxmoxGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

type SQcloudGuestDriver

type SQcloudGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SQcloudGuestDriver) AllowReconfigGuest

func (self *SQcloudGuestDriver) AllowReconfigGuest() bool

func (*SQcloudGuestDriver) ChooseHostStorage

func (self *SQcloudGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SQcloudGuestDriver) GetAttachDiskStatus

func (self *SQcloudGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SQcloudGuestDriver) GetChangeConfigStatus

func (self *SQcloudGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SQcloudGuestDriver) GetComputeQuotaKeys

func (self *SQcloudGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SQcloudGuestDriver) GetDefaultAccount

func (self *SQcloudGuestDriver) GetDefaultAccount(desc cloudprovider.SManagedVMCreateConfig) string

func (*SQcloudGuestDriver) GetDefaultSysDiskBackend

func (self *SQcloudGuestDriver) GetDefaultSysDiskBackend() string

func (*SQcloudGuestDriver) GetDeployStatus

func (self *SQcloudGuestDriver) GetDeployStatus() ([]string, error)

func (*SQcloudGuestDriver) GetDetachDiskStatus

func (self *SQcloudGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SQcloudGuestDriver) GetGuestInitialStateAfterCreate

func (self *SQcloudGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SQcloudGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SQcloudGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SQcloudGuestDriver) GetHypervisor

func (self *SQcloudGuestDriver) GetHypervisor() string

func (*SQcloudGuestDriver) GetInstanceCapability

func (self *SQcloudGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SQcloudGuestDriver) GetMinimalSysDiskSizeGb

func (self *SQcloudGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SQcloudGuestDriver) GetProvider

func (self *SQcloudGuestDriver) GetProvider() string

func (*SQcloudGuestDriver) GetRebuildRootStatus

func (self *SQcloudGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SQcloudGuestDriver) GetStorageTypes

func (self *SQcloudGuestDriver) GetStorageTypes() []string

func (*SQcloudGuestDriver) GetUserDataType

func (self *SQcloudGuestDriver) GetUserDataType() string

func (*SQcloudGuestDriver) IsSupportPublicIp

func (self *SQcloudGuestDriver) IsSupportPublicIp() bool

func (*SQcloudGuestDriver) IsSupportPublicipToEip

func (self *SQcloudGuestDriver) IsSupportPublicipToEip() bool

func (*SQcloudGuestDriver) IsSupportSetAutoRenew

func (self *SQcloudGuestDriver) IsSupportSetAutoRenew() bool

func (*SQcloudGuestDriver) IsSupportdDcryptPasswordFromSecretKey

func (self *SQcloudGuestDriver) IsSupportdDcryptPasswordFromSecretKey() bool

func (*SQcloudGuestDriver) IsSupportedBillingCycle

func (self *SQcloudGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SQcloudGuestDriver) ValidateChangeConfig

func (self *SQcloudGuestDriver) ValidateChangeConfig(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, cpuChanged bool, memChanged bool, newDisks []*api.DiskConfig) error

func (*SQcloudGuestDriver) ValidateCreateData

func (self *SQcloudGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SQcloudGuestDriver) ValidateDetachDisk

func (self *SQcloudGuestDriver) ValidateDetachDisk(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, disk *models.SDisk) error

func (*SQcloudGuestDriver) ValidateResizeDisk

func (self *SQcloudGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SRemoteFileGuestDriver

type SRemoteFileGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SRemoteFileGuestDriver) GetComputeQuotaKeys

func (*SRemoteFileGuestDriver) GetDefaultSysDiskBackend

func (self *SRemoteFileGuestDriver) GetDefaultSysDiskBackend() string

func (*SRemoteFileGuestDriver) GetHypervisor

func (self *SRemoteFileGuestDriver) GetHypervisor() string

func (*SRemoteFileGuestDriver) GetInstanceCapability

func (self *SRemoteFileGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SRemoteFileGuestDriver) GetMinimalSysDiskSizeGb

func (self *SRemoteFileGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SRemoteFileGuestDriver) GetProvider

func (self *SRemoteFileGuestDriver) GetProvider() string

type SUCloudGuestDriver

type SUCloudGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SUCloudGuestDriver) GetAttachDiskStatus

func (self *SUCloudGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SUCloudGuestDriver) GetChangeConfigStatus

func (self *SUCloudGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SUCloudGuestDriver) GetComputeQuotaKeys

func (self *SUCloudGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SUCloudGuestDriver) GetDefaultSysDiskBackend

func (self *SUCloudGuestDriver) GetDefaultSysDiskBackend() string

func (*SUCloudGuestDriver) GetDeployStatus

func (self *SUCloudGuestDriver) GetDeployStatus() ([]string, error)

func (*SUCloudGuestDriver) GetDetachDiskStatus

func (self *SUCloudGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SUCloudGuestDriver) GetGuestInitialStateAfterCreate

func (self *SUCloudGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SUCloudGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SUCloudGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SUCloudGuestDriver) GetHypervisor

func (self *SUCloudGuestDriver) GetHypervisor() string

func (*SUCloudGuestDriver) GetInstanceCapability

func (self *SUCloudGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SUCloudGuestDriver) GetMinimalSysDiskSizeGb

func (self *SUCloudGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SUCloudGuestDriver) GetProvider

func (self *SUCloudGuestDriver) GetProvider() string

func (*SUCloudGuestDriver) GetRebuildRootStatus

func (self *SUCloudGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SUCloudGuestDriver) ValidateResizeDisk

func (self *SUCloudGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

type SVirtualizedGuestDriver

type SVirtualizedGuestDriver struct {
	SBaseGuestDriver
}

func (*SVirtualizedGuestDriver) Attach2RandomNetwork

func (self *SVirtualizedGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, netConfig *api.NetworkConfig, pendingUsage quotas.IQuota) ([]models.SGuestnetwork, error)

func (*SVirtualizedGuestDriver) CanKeepDetachDisk

func (self *SVirtualizedGuestDriver) CanKeepDetachDisk() bool

func (*SVirtualizedGuestDriver) CheckDiskTemplateOnStorage

func (self *SVirtualizedGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, format string, storageId string, task taskman.ITask) error

func (*SVirtualizedGuestDriver) ChooseHostStorage

func (self *SVirtualizedGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SVirtualizedGuestDriver) DoScheduleSKUFilter

func (d *SVirtualizedGuestDriver) DoScheduleSKUFilter() bool

func (*SVirtualizedGuestDriver) GetMaxVCpuCount

func (self *SVirtualizedGuestDriver) GetMaxVCpuCount() int

func (*SVirtualizedGuestDriver) GetMaxVMemSizeGB

func (self *SVirtualizedGuestDriver) GetMaxVMemSizeGB() int

func (*SVirtualizedGuestDriver) GetNamedNetworkConfiguration

func (self *SVirtualizedGuestDriver) GetNamedNetworkConfiguration(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, host *models.SHost, netConfig *api.NetworkConfig) (*models.SNetwork, []models.SNicConfig, api.IPAllocationDirection, bool, error)

func (*SVirtualizedGuestDriver) GetRandomNetworkTypes

func (self *SVirtualizedGuestDriver) GetRandomNetworkTypes() []string

func (*SVirtualizedGuestDriver) GetStorageTypes

func (self *SVirtualizedGuestDriver) GetStorageTypes() []string

func (*SVirtualizedGuestDriver) PerformStart

func (self *SVirtualizedGuestDriver) PerformStart(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, data *jsonutils.JSONDict) error

func (*SVirtualizedGuestDriver) PrepareDiskRaidConfig

func (self *SVirtualizedGuestDriver) PrepareDiskRaidConfig(userCred mcclient.TokenCredential, host *models.SHost, params []*api.BaremetalDiskConfig, disks []*api.DiskConfig) ([]*api.DiskConfig, error)

func (*SVirtualizedGuestDriver) RequestDeleteDetachedDisk

func (self *SVirtualizedGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error

func (*SVirtualizedGuestDriver) RequestGuestCreateInsertIso

func (self *SVirtualizedGuestDriver) RequestGuestCreateInsertIso(ctx context.Context, imageId string, guest *models.SGuest, task taskman.ITask) error

func (*SVirtualizedGuestDriver) RequestStopGuestForDelete

func (self *SVirtualizedGuestDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest,
	host *models.SHost, task taskman.ITask) error

func (*SVirtualizedGuestDriver) StartGuestAttachDiskTask

func (self *SVirtualizedGuestDriver) StartGuestAttachDiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestDetachdiskTask

func (self *SVirtualizedGuestDriver) StartGuestDetachdiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestResetTask

func (self *SVirtualizedGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isHard bool, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestSaveGuestImage

func (self *SVirtualizedGuestDriver) StartGuestSaveGuestImage(ctx context.Context, userCred mcclient.TokenCredential,
	guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestSaveImage

func (self *SVirtualizedGuestDriver) StartGuestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestStopTask

func (self *SVirtualizedGuestDriver) StartGuestStopTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartGuestSyncstatusTask

func (self *SVirtualizedGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartResumeTask

func (self *SVirtualizedGuestDriver) StartResumeTask(ctx context.Context, userCred mcclient.TokenCredential,
	guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) StartSuspendTask

func (self *SVirtualizedGuestDriver) StartSuspendTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict, parentTaskId string) error

func (*SVirtualizedGuestDriver) ValidateCreateData

func (self *SVirtualizedGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SVirtualizedGuestDriver) ValidateCreateDataOnHost

func (self *SVirtualizedGuestDriver) ValidateCreateDataOnHost(ctx context.Context, userCred mcclient.TokenCredential, bmName string, host *models.SHost, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

type SZStackGuestDriver

type SZStackGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SZStackGuestDriver) AllowReconfigGuest

func (self *SZStackGuestDriver) AllowReconfigGuest() bool

func (*SZStackGuestDriver) ChooseHostStorage

func (self *SZStackGuestDriver) ChooseHostStorage(host *models.SHost, guest *models.SGuest, diskConfig *api.DiskConfig, storageIds []string) (*models.SStorage, error)

func (*SZStackGuestDriver) DoScheduleCPUFilter

func (self *SZStackGuestDriver) DoScheduleCPUFilter() bool

func (*SZStackGuestDriver) DoScheduleMemoryFilter

func (self *SZStackGuestDriver) DoScheduleMemoryFilter() bool

func (*SZStackGuestDriver) DoScheduleSKUFilter

func (self *SZStackGuestDriver) DoScheduleSKUFilter() bool

func (*SZStackGuestDriver) DoScheduleStorageFilter

func (self *SZStackGuestDriver) DoScheduleStorageFilter() bool

func (*SZStackGuestDriver) GetAttachDiskStatus

func (self *SZStackGuestDriver) GetAttachDiskStatus() ([]string, error)

func (*SZStackGuestDriver) GetChangeConfigStatus

func (self *SZStackGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error)

func (*SZStackGuestDriver) GetComputeQuotaKeys

func (self *SZStackGuestDriver) GetComputeQuotaKeys(scope rbacutils.TRbacScope, ownerId mcclient.IIdentityProvider, brand string) models.SComputeResourceKeys

func (*SZStackGuestDriver) GetDefaultSysDiskBackend

func (self *SZStackGuestDriver) GetDefaultSysDiskBackend() string

func (*SZStackGuestDriver) GetDeployStatus

func (self *SZStackGuestDriver) GetDeployStatus() ([]string, error)

func (*SZStackGuestDriver) GetDetachDiskStatus

func (self *SZStackGuestDriver) GetDetachDiskStatus() ([]string, error)

func (*SZStackGuestDriver) GetGuestInitialStateAfterCreate

func (self *SZStackGuestDriver) GetGuestInitialStateAfterCreate() string

func (*SZStackGuestDriver) GetGuestInitialStateAfterRebuild

func (self *SZStackGuestDriver) GetGuestInitialStateAfterRebuild() string

func (*SZStackGuestDriver) GetHypervisor

func (self *SZStackGuestDriver) GetHypervisor() string

func (*SZStackGuestDriver) GetInstanceCapability

func (self *SZStackGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapability

func (*SZStackGuestDriver) GetMaxSecurityGroupCount

func (self *SZStackGuestDriver) GetMaxSecurityGroupCount() int

func (*SZStackGuestDriver) GetMinimalSysDiskSizeGb

func (self *SZStackGuestDriver) GetMinimalSysDiskSizeGb() int

func (*SZStackGuestDriver) GetProvider

func (self *SZStackGuestDriver) GetProvider() string

func (*SZStackGuestDriver) GetRebuildRootStatus

func (self *SZStackGuestDriver) GetRebuildRootStatus() ([]string, error)

func (*SZStackGuestDriver) GetStorageTypes

func (self *SZStackGuestDriver) GetStorageTypes() []string

func (*SZStackGuestDriver) GetUserDataType

func (self *SZStackGuestDriver) GetUserDataType() string

func (*SZStackGuestDriver) IsNeedInjectPasswordByCloudInit

func (self *SZStackGuestDriver) IsNeedInjectPasswordByCloudInit() bool

func (*SZStackGuestDriver) IsNeedRestartForResetLoginInfo

func (self *SZStackGuestDriver) IsNeedRestartForResetLoginInfo() bool

func (*SZStackGuestDriver) IsSupportedBillingCycle

func (self *SZStackGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool

func (*SZStackGuestDriver) IsWindowsUserDataTypeNeedEncode

func (self *SZStackGuestDriver) IsWindowsUserDataTypeNeedEncode() bool

func (*SZStackGuestDriver) ValidateCreateData

func (self *SZStackGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, input *api.ServerCreateInput) (*api.ServerCreateInput, error)

func (*SZStackGuestDriver) ValidateCreateEip

func (self *SZStackGuestDriver) ValidateCreateEip(ctx context.Context, userCred mcclient.TokenCredential, input api.ServerCreateEipInput) error

func (*SZStackGuestDriver) ValidateResizeDisk

func (self *SZStackGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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