Documentation ¶
Index ¶
- Constants
- type SAliyunGuestDriver
- func (self *SAliyunGuestDriver) AllowReconfigGuest() bool
- func (self *SAliyunGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SAliyunGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SAliyunGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SAliyunGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SAliyunGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SAliyunGuestDriver) GetHypervisor() string
- func (self *SAliyunGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SAliyunGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SAliyunGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SAliyunGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SAliyunGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- func (self *SAliyunGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- type SAwsGuestDriver
- func (self *SAwsGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SAwsGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SAwsGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SAwsGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SAwsGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SAwsGuestDriver) GetHypervisor() string
- func (self *SAwsGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SAwsGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SAwsGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SAwsGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SAwsGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SAzureGuestDriver
- func (self *SAzureGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SAzureGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SAzureGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SAzureGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SAzureGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SAzureGuestDriver) GetHypervisor() string
- func (self *SAzureGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SAzureGuestDriver) IsNeedRestartForResetLoginInfo() bool
- func (self *SAzureGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SAzureGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SAzureGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SAzureGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- func (self *SAzureGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- func (self *SAzureGuestDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SBaremetalGuestDriver
- func (self *SBaremetalGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalGuestDriver) CanKeepDetachDisk() bool
- func (self *SBaremetalGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, ...) error
- func (self *SBaremetalGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SBaremetalGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SBaremetalGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SBaremetalGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SBaremetalGuestDriver) GetHypervisor() string
- func (self *SBaremetalGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
- func (self *SBaremetalGuestDriver) GetMaxVCpuCount() int
- func (self *SBaremetalGuestDriver) GetMaxVMemSizeGB() int
- func (self *SBaremetalGuestDriver) GetNamedNetworkConfiguration(guest *models.SGuest, userCred mcclient.TokenCredential, host *models.SHost, ...) (*models.SNetwork, string, int8, models.IPAddlocationDirection)
- func (self *SBaremetalGuestDriver) GetRandomNetworkTypes() []string
- func (self *SBaremetalGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SBaremetalGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
- func (self *SBaremetalGuestDriver) OnGuestDeployTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaremetalGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SBaremetalGuestDriver) PerformStart(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaremetalGuestDriver) PrepareDiskRaidConfig(host *models.SHost, params *jsonutils.JSONDict) error
- func (self *SBaremetalGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SBaremetalGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaremetalGuestDriver) RequestGuestCreateInsertIso(ctx context.Context, imageId string, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaremetalGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SBaremetalGuestDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaremetalGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SBaremetalGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SBaremetalGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SBaremetalGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SBaremetalGuestDriver) StartGuestAttachDiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaremetalGuestDriver) StartGuestDetachdiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaremetalGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalGuestDriver) StartGuestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaremetalGuestDriver) StartGuestStopTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaremetalGuestDriver) StartSuspendTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaremetalGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- func (self *SBaremetalGuestDriver) ValidateCreateHostData(ctx context.Context, userCred mcclient.TokenCredential, bmName string, ...) (*jsonutils.JSONDict, error)
- func (self *SBaremetalGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- type SBaseGuestDriver
- func (self *SBaseGuestDriver) AllowReconfigGuest() bool
- func (self *SBaseGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SBaseGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SBaseGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SBaseGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SBaseGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SBaseGuestDriver) IsNeedRestartForResetLoginInfo() bool
- func (self *SBaseGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
- func (self *SBaseGuestDriver) OnGuestCreateTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SBaseGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error
- func (self *SBaseGuestDriver) RequestDeleteSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SBaseGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SBaseGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RequestReloadDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SBaseGuestDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) RqeuestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) StartDeleteGuestTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaseGuestDriver) StartGuestCreateTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseGuestDriver) StartGuestDiskSnapshotTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SBaseGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseGuestDriver) StartGuestRestartTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- func (self *SBaseGuestDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SContainerDriver
- func (self *SContainerDriver) CanKeepDetachDisk() bool
- func (self *SContainerDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SContainerDriver) GetHypervisor() string
- func (self *SContainerDriver) GetRandomNetworkTypes() []string
- func (self *SContainerDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
- func (self *SContainerDriver) OnGuestDeployTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SContainerDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SContainerDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SContainerDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, task taskman.ITask) error
- func (self *SContainerDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SContainerDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SContainerDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SContainerDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SContainerDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SContainerDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SContainerDriver) RqeuestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- type SDiskInfo
- type SESXiGuestDriver
- func (self *SESXiGuestDriver) CanKeepDetachDisk() bool
- func (self *SESXiGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SESXiGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SESXiGuestDriver) GetHypervisor() string
- func (self *SESXiGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error
- func (self *SESXiGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, task taskman.ITask) error
- func (self *SESXiGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- type SKVMGuestDriver
- func (self *SKVMGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SKVMGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SKVMGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SKVMGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SKVMGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SKVMGuestDriver) GetHypervisor() string
- func (self *SKVMGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SKVMGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
- func (self *SKVMGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SKVMGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SKVMGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error
- func (self *SKVMGuestDriver) RequestDeleteSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SKVMGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SKVMGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SKVMGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestGuestHotAddIso(ctx context.Context, guest *models.SGuest, path string, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestReloadDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SKVMGuestDriver) RequestSoftReset(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SKVMGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SKVMGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SKVMGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SKVMGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SKVMGuestDriver) RqeuestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SKVMGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- type SManagedVMChangeConfig
- type SManagedVMCreateConfig
- type SManagedVirtualizedGuestDriver
- func (self *SManagedVirtualizedGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SManagedVirtualizedGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
- func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestAttachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) error
- func (self *SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) RequestDiskSnapshot(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) RequestRebuildRootDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) RequestStartOnHost(_ context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SManagedVirtualizedGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) (jsonutils.JSONObject, error)
- func (self *SManagedVirtualizedGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- type SQcloudGuestDriver
- func (self *SQcloudGuestDriver) AllowReconfigGuest() bool
- func (self *SQcloudGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SQcloudGuestDriver) GetAttachDiskStatus() ([]string, error)
- func (self *SQcloudGuestDriver) GetChangeConfigStatus() ([]string, error)
- func (self *SQcloudGuestDriver) GetDeployStatus() ([]string, error)
- func (self *SQcloudGuestDriver) GetDetachDiskStatus() ([]string, error)
- func (self *SQcloudGuestDriver) GetHypervisor() string
- func (self *SQcloudGuestDriver) GetRebuildRootStatus() ([]string, error)
- func (self *SQcloudGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SQcloudGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SQcloudGuestDriver) RequestDetachDisk(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SQcloudGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- func (self *SQcloudGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error
- type SVirtualizedGuestDriver
- func (self *SVirtualizedGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SVirtualizedGuestDriver) CanKeepDetachDisk() bool
- func (self *SVirtualizedGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, ...) error
- func (self *SVirtualizedGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SVirtualizedGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
- func (self *SVirtualizedGuestDriver) GetMaxVCpuCount() int
- func (self *SVirtualizedGuestDriver) GetMaxVMemSizeGB() int
- func (self *SVirtualizedGuestDriver) GetNamedNetworkConfiguration(guest *models.SGuest, userCred mcclient.TokenCredential, host *models.SHost, ...) (*models.SNetwork, string, int8, models.IPAddlocationDirection)
- func (self *SVirtualizedGuestDriver) GetRandomNetworkTypes() []string
- func (self *SVirtualizedGuestDriver) OnGuestDeployTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SVirtualizedGuestDriver) PerformStart(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) PrepareDiskRaidConfig(host *models.SHost, params *jsonutils.JSONDict) error
- func (self *SVirtualizedGuestDriver) RequestGuestCreateInsertIso(ctx context.Context, imageId string, guest *models.SGuest, task taskman.ITask) error
- func (self *SVirtualizedGuestDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SVirtualizedGuestDriver) StartGuestAttachDiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestDetachdiskTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestDiskSnapshotTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestRestartTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestSaveImage(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestStopTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SVirtualizedGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SVirtualizedGuestDriver) StartSuspendTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, ...) error
- func (self *SVirtualizedGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- func (self *SVirtualizedGuestDriver) ValidateCreateHostData(ctx context.Context, userCred mcclient.TokenCredential, bmName string, ...) (*jsonutils.JSONDict, error)
Constants ¶
View Source
const (
DEFAULT_USER = "yunion"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SAliyunGuestDriver ¶
type SAliyunGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SAliyunGuestDriver) AllowReconfigGuest ¶
func (self *SAliyunGuestDriver) AllowReconfigGuest() bool
func (*SAliyunGuestDriver) ChooseHostStorage ¶
func (*SAliyunGuestDriver) GetAttachDiskStatus ¶
func (self *SAliyunGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SAliyunGuestDriver) GetChangeConfigStatus ¶
func (self *SAliyunGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SAliyunGuestDriver) GetDeployStatus ¶
func (self *SAliyunGuestDriver) GetDeployStatus() ([]string, error)
func (*SAliyunGuestDriver) GetDetachDiskStatus ¶
func (self *SAliyunGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SAliyunGuestDriver) GetHypervisor ¶
func (self *SAliyunGuestDriver) GetHypervisor() string
func (*SAliyunGuestDriver) GetRebuildRootStatus ¶
func (self *SAliyunGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SAliyunGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SAliyunGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SAliyunGuestDriver) RequestDeployGuestOnHost ¶
func (*SAliyunGuestDriver) RequestDetachDisk ¶
func (*SAliyunGuestDriver) ValidateCreateData ¶
func (self *SAliyunGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SAliyunGuestDriver) ValidateResizeDisk ¶
type SAwsGuestDriver ¶
type SAwsGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SAwsGuestDriver) ChooseHostStorage ¶
func (*SAwsGuestDriver) GetAttachDiskStatus ¶
func (self *SAwsGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SAwsGuestDriver) GetChangeConfigStatus ¶
func (self *SAwsGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SAwsGuestDriver) GetDeployStatus ¶
func (self *SAwsGuestDriver) GetDeployStatus() ([]string, error)
AWS不允许更改密码或替换密钥对
func (*SAwsGuestDriver) GetDetachDiskStatus ¶
func (self *SAwsGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SAwsGuestDriver) GetHypervisor ¶
func (self *SAwsGuestDriver) GetHypervisor() string
func (*SAwsGuestDriver) GetRebuildRootStatus ¶
func (self *SAwsGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SAwsGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SAwsGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SAwsGuestDriver) RequestDeployGuestOnHost ¶
func (*SAwsGuestDriver) RequestDetachDisk ¶
func (*SAwsGuestDriver) ValidateCreateData ¶
func (self *SAwsGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SAzureGuestDriver ¶
type SAzureGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SAzureGuestDriver) ChooseHostStorage ¶
func (*SAzureGuestDriver) GetAttachDiskStatus ¶
func (self *SAzureGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SAzureGuestDriver) GetChangeConfigStatus ¶
func (self *SAzureGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SAzureGuestDriver) GetDeployStatus ¶
func (self *SAzureGuestDriver) GetDeployStatus() ([]string, error)
func (*SAzureGuestDriver) GetDetachDiskStatus ¶
func (self *SAzureGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SAzureGuestDriver) GetHypervisor ¶
func (self *SAzureGuestDriver) GetHypervisor() string
func (*SAzureGuestDriver) GetRebuildRootStatus ¶
func (self *SAzureGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SAzureGuestDriver) IsNeedRestartForResetLoginInfo ¶
func (self *SAzureGuestDriver) IsNeedRestartForResetLoginInfo() bool
func (*SAzureGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SAzureGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SAzureGuestDriver) RequestDeployGuestOnHost ¶
func (*SAzureGuestDriver) RequestDetachDisk ¶
func (*SAzureGuestDriver) ValidateCreateData ¶
func (self *SAzureGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SAzureGuestDriver) ValidateResizeDisk ¶
func (*SAzureGuestDriver) ValidateUpdateData ¶
func (self *SAzureGuestDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, 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 *models.SNetworkConfig, pendingUsage quotas.IQuota) error
func (*SBaremetalGuestDriver) CanKeepDetachDisk ¶
func (self *SBaremetalGuestDriver) CanKeepDetachDisk() bool
func (*SBaremetalGuestDriver) CheckDiskTemplateOnStorage ¶
func (self *SBaremetalGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, storageId string, task taskman.ITask) error
func (*SBaremetalGuestDriver) ChooseHostStorage ¶
func (*SBaremetalGuestDriver) GetChangeConfigStatus ¶
func (self *SBaremetalGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SBaremetalGuestDriver) GetDeployStatus ¶
func (self *SBaremetalGuestDriver) GetDeployStatus() ([]string, error)
func (*SBaremetalGuestDriver) GetGuestVncInfo ¶
func (self *SBaremetalGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
func (*SBaremetalGuestDriver) GetHypervisor ¶
func (self *SBaremetalGuestDriver) GetHypervisor() string
func (*SBaremetalGuestDriver) GetJsonDescAtHost ¶
func (self *SBaremetalGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
func (*SBaremetalGuestDriver) GetMaxVCpuCount ¶
func (self *SBaremetalGuestDriver) GetMaxVCpuCount() int
func (*SBaremetalGuestDriver) GetMaxVMemSizeGB ¶
func (self *SBaremetalGuestDriver) GetMaxVMemSizeGB() int
func (*SBaremetalGuestDriver) GetNamedNetworkConfiguration ¶
func (self *SBaremetalGuestDriver) GetNamedNetworkConfiguration(guest *models.SGuest, userCred mcclient.TokenCredential, host *models.SHost, netConfig *models.SNetworkConfig) (*models.SNetwork, string, int8, models.IPAddlocationDirection)
func (*SBaremetalGuestDriver) GetRandomNetworkTypes ¶
func (self *SBaremetalGuestDriver) GetRandomNetworkTypes() []string
func (*SBaremetalGuestDriver) GetRebuildRootStatus ¶
func (self *SBaremetalGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SBaremetalGuestDriver) OnDeleteGuestFinalCleanup ¶
func (self *SBaremetalGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
func (*SBaremetalGuestDriver) OnGuestDeployTaskComplete ¶
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 (*SBaremetalGuestDriver) RequestDeployGuestOnHost ¶
func (*SBaremetalGuestDriver) RequestGuestCreateAllDisks ¶
func (*SBaremetalGuestDriver) RequestGuestCreateInsertIso ¶
func (*SBaremetalGuestDriver) RequestStartOnHost ¶
func (self *SBaremetalGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SBaremetalGuestDriver) RequestStopGuestForDelete ¶
func (*SBaremetalGuestDriver) RequestStopOnHost ¶
func (*SBaremetalGuestDriver) RequestSyncConfigOnHost ¶
func (*SBaremetalGuestDriver) RequestSyncstatusOnHost ¶
func (self *SBaremetalGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, error)
func (*SBaremetalGuestDriver) RequestUndeployGuestOnHost ¶
func (*SBaremetalGuestDriver) StartGuestAttachDiskTask ¶
func (*SBaremetalGuestDriver) StartGuestDetachdiskTask ¶
func (*SBaremetalGuestDriver) StartGuestResetTask ¶
func (self *SBaremetalGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isHard bool, parentTaskId string) error
func (*SBaremetalGuestDriver) StartGuestSaveImage ¶
func (*SBaremetalGuestDriver) StartGuestStopTask ¶
func (*SBaremetalGuestDriver) StartGuestSyncstatusTask ¶
func (self *SBaremetalGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SBaremetalGuestDriver) StartSuspendTask ¶
func (*SBaremetalGuestDriver) ValidateCreateData ¶
func (self *SBaremetalGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SBaremetalGuestDriver) ValidateCreateHostData ¶
func (*SBaremetalGuestDriver) ValidateResizeDisk ¶
type SBaseGuestDriver ¶
type SBaseGuestDriver struct { }
func (*SBaseGuestDriver) AllowReconfigGuest ¶
func (self *SBaseGuestDriver) AllowReconfigGuest() bool
func (*SBaseGuestDriver) DoGuestCreateDisksTask ¶
func (*SBaseGuestDriver) GetAttachDiskStatus ¶
func (self *SBaseGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SBaseGuestDriver) GetChangeConfigStatus ¶
func (self *SBaseGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SBaseGuestDriver) GetDeployStatus ¶
func (self *SBaseGuestDriver) GetDeployStatus() ([]string, error)
func (*SBaseGuestDriver) GetDetachDiskStatus ¶
func (self *SBaseGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SBaseGuestDriver) GetRebuildRootStatus ¶
func (self *SBaseGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SBaseGuestDriver) IsNeedRestartForResetLoginInfo ¶
func (self *SBaseGuestDriver) IsNeedRestartForResetLoginInfo() bool
func (*SBaseGuestDriver) OnDeleteGuestFinalCleanup ¶
func (self *SBaseGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
func (*SBaseGuestDriver) OnGuestCreateTaskComplete ¶
func (*SBaseGuestDriver) RequestAttachDisk ¶
func (*SBaseGuestDriver) RequestChangeVmConfig ¶
func (*SBaseGuestDriver) RequestDeleteDetachedDisk ¶
func (*SBaseGuestDriver) RequestDeleteSnapshot ¶
func (*SBaseGuestDriver) RequestDetachDisk ¶
func (*SBaseGuestDriver) RequestDetachDisksFromGuestForDelete ¶
func (*SBaseGuestDriver) RequestDiskSnapshot ¶
func (*SBaseGuestDriver) RequestGuestCreateAllDisks ¶
func (*SBaseGuestDriver) RequestGuestHotAddIso ¶
func (*SBaseGuestDriver) RequestRebuildRootDisk ¶
func (*SBaseGuestDriver) RequestReloadDiskSnapshot ¶
func (*SBaseGuestDriver) RequestSoftReset ¶
func (*SBaseGuestDriver) RqeuestSuspendOnHost ¶
func (*SBaseGuestDriver) StartDeleteGuestTask ¶
func (*SBaseGuestDriver) StartGuestCreateTask ¶
func (*SBaseGuestDriver) StartGuestDiskSnapshotTask ¶
func (self *SBaseGuestDriver) StartGuestDiskSnapshotTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict) 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) ValidateResizeDisk ¶
func (*SBaseGuestDriver) ValidateUpdateData ¶
func (self *SBaseGuestDriver) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SContainerDriver ¶
type SContainerDriver struct {
SVirtualizedGuestDriver
}
func (*SContainerDriver) CanKeepDetachDisk ¶
func (self *SContainerDriver) CanKeepDetachDisk() bool
func (*SContainerDriver) DoGuestCreateDisksTask ¶
func (*SContainerDriver) GetGuestVncInfo ¶
func (self *SContainerDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
func (*SContainerDriver) GetHypervisor ¶
func (self *SContainerDriver) GetHypervisor() string
func (*SContainerDriver) GetRandomNetworkTypes ¶
func (self *SContainerDriver) GetRandomNetworkTypes() []string
func (*SContainerDriver) OnDeleteGuestFinalCleanup ¶
func (self *SContainerDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
func (*SContainerDriver) OnGuestDeployTaskComplete ¶
func (*SContainerDriver) OnGuestDeployTaskDataReceived ¶
func (self *SContainerDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SContainerDriver) RequestChangeVmConfig ¶
func (*SContainerDriver) RequestDeployGuestOnHost ¶
func (*SContainerDriver) RequestDetachDisk ¶
func (*SContainerDriver) RequestDetachDisksFromGuestForDelete ¶
func (*SContainerDriver) RequestGuestCreateAllDisks ¶
func (*SContainerDriver) RequestGuestHotAddIso ¶
func (*SContainerDriver) RequestRebuildRootDisk ¶
func (*SContainerDriver) RequestSoftReset ¶
func (*SContainerDriver) RequestStartOnHost ¶
func (self *SContainerDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SContainerDriver) RequestStopGuestForDelete ¶
func (*SContainerDriver) RequestStopOnHost ¶
func (*SContainerDriver) RequestSyncConfigOnHost ¶
func (*SContainerDriver) RequestSyncstatusOnHost ¶
func (self *SContainerDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, error)
func (*SContainerDriver) RequestUndeployGuestOnHost ¶
func (*SContainerDriver) RqeuestSuspendOnHost ¶
type SESXiGuestDriver ¶
type SESXiGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SESXiGuestDriver) CanKeepDetachDisk ¶
func (self *SESXiGuestDriver) CanKeepDetachDisk() bool
func (*SESXiGuestDriver) GetAttachDiskStatus ¶
func (self *SESXiGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SESXiGuestDriver) GetDetachDiskStatus ¶
func (self *SESXiGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SESXiGuestDriver) GetHypervisor ¶
func (self *SESXiGuestDriver) GetHypervisor() string
func (*SESXiGuestDriver) RequestDeleteDetachedDisk ¶
func (*SESXiGuestDriver) RequestGuestHotAddIso ¶
type SKVMGuestDriver ¶
type SKVMGuestDriver struct {
SVirtualizedGuestDriver
}
func (*SKVMGuestDriver) DoGuestCreateDisksTask ¶
func (*SKVMGuestDriver) GetAttachDiskStatus ¶
func (self *SKVMGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SKVMGuestDriver) GetChangeConfigStatus ¶
func (self *SKVMGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SKVMGuestDriver) GetDeployStatus ¶
func (self *SKVMGuestDriver) GetDeployStatus() ([]string, error)
func (*SKVMGuestDriver) GetDetachDiskStatus ¶
func (self *SKVMGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SKVMGuestDriver) GetGuestVncInfo ¶
func (self *SKVMGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
func (*SKVMGuestDriver) GetHypervisor ¶
func (self *SKVMGuestDriver) GetHypervisor() string
func (*SKVMGuestDriver) GetRebuildRootStatus ¶
func (self *SKVMGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SKVMGuestDriver) OnDeleteGuestFinalCleanup ¶
func (self *SKVMGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
func (*SKVMGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SKVMGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SKVMGuestDriver) RequestAttachDisk ¶
func (*SKVMGuestDriver) RequestChangeVmConfig ¶
func (*SKVMGuestDriver) RequestDeleteDetachedDisk ¶
func (*SKVMGuestDriver) RequestDeleteSnapshot ¶
func (*SKVMGuestDriver) RequestDeployGuestOnHost ¶
func (*SKVMGuestDriver) RequestDetachDisk ¶
func (*SKVMGuestDriver) RequestDetachDisksFromGuestForDelete ¶
func (*SKVMGuestDriver) RequestDiskSnapshot ¶
func (*SKVMGuestDriver) RequestGuestCreateAllDisks ¶
func (*SKVMGuestDriver) RequestGuestHotAddIso ¶
func (*SKVMGuestDriver) RequestRebuildRootDisk ¶
func (*SKVMGuestDriver) RequestReloadDiskSnapshot ¶
func (*SKVMGuestDriver) RequestSoftReset ¶
func (*SKVMGuestDriver) RequestStartOnHost ¶
func (self *SKVMGuestDriver) RequestStartOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SKVMGuestDriver) RequestStopOnHost ¶
func (*SKVMGuestDriver) RequestSyncConfigOnHost ¶
func (*SKVMGuestDriver) RequestSyncstatusOnHost ¶
func (self *SKVMGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, error)
func (*SKVMGuestDriver) RequestUndeployGuestOnHost ¶
func (*SKVMGuestDriver) RqeuestSuspendOnHost ¶
func (*SKVMGuestDriver) ValidateResizeDisk ¶
type SManagedVMChangeConfig ¶
type SManagedVMCreateConfig ¶
type SManagedVMCreateConfig struct { Name string ExternalImageId string OsDistribution string OsVersion string Cpu int Memory int ExternalNetworkId string IpAddr string Description string StorageType string SysDiskSize int DataDisks []int PublicKey string SecGroupId string SecGroupName string SecRules []secrules.SecurityRule }
type SManagedVirtualizedGuestDriver ¶
type SManagedVirtualizedGuestDriver struct {
SVirtualizedGuestDriver
}
func (*SManagedVirtualizedGuestDriver) DoGuestCreateDisksTask ¶
func (*SManagedVirtualizedGuestDriver) GetGuestVncInfo ¶
func (self *SManagedVirtualizedGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
func (*SManagedVirtualizedGuestDriver) GetJsonDescAtHost ¶
func (self *SManagedVirtualizedGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
func (*SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SManagedVirtualizedGuestDriver) RequestAttachDisk ¶
func (*SManagedVirtualizedGuestDriver) RequestChangeVmConfig ¶
func (*SManagedVirtualizedGuestDriver) RequestDeleteDetachedDisk ¶
func (*SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost ¶
func (*SManagedVirtualizedGuestDriver) RequestDetachDisk ¶
func (*SManagedVirtualizedGuestDriver) RequestDiskSnapshot ¶
func (*SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks ¶
func (*SManagedVirtualizedGuestDriver) RequestRebuildRootDisk ¶
func (*SManagedVirtualizedGuestDriver) RequestStartOnHost ¶
func (self *SManagedVirtualizedGuestDriver) RequestStartOnHost(_ context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SManagedVirtualizedGuestDriver) RequestStopOnHost ¶
func (*SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost ¶
func (*SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost ¶
func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, error)
type SQcloudGuestDriver ¶
type SQcloudGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SQcloudGuestDriver) AllowReconfigGuest ¶
func (self *SQcloudGuestDriver) AllowReconfigGuest() bool
func (*SQcloudGuestDriver) ChooseHostStorage ¶
func (*SQcloudGuestDriver) GetAttachDiskStatus ¶
func (self *SQcloudGuestDriver) GetAttachDiskStatus() ([]string, error)
func (*SQcloudGuestDriver) GetChangeConfigStatus ¶
func (self *SQcloudGuestDriver) GetChangeConfigStatus() ([]string, error)
func (*SQcloudGuestDriver) GetDeployStatus ¶
func (self *SQcloudGuestDriver) GetDeployStatus() ([]string, error)
func (*SQcloudGuestDriver) GetDetachDiskStatus ¶
func (self *SQcloudGuestDriver) GetDetachDiskStatus() ([]string, error)
func (*SQcloudGuestDriver) GetHypervisor ¶
func (self *SQcloudGuestDriver) GetHypervisor() string
func (*SQcloudGuestDriver) GetRebuildRootStatus ¶
func (self *SQcloudGuestDriver) GetRebuildRootStatus() ([]string, error)
func (*SQcloudGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SQcloudGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SQcloudGuestDriver) RequestDeployGuestOnHost ¶
func (*SQcloudGuestDriver) RequestDetachDisk ¶
func (*SQcloudGuestDriver) ValidateCreateData ¶
func (self *SQcloudGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SQcloudGuestDriver) ValidateResizeDisk ¶
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 *models.SNetworkConfig, pendingUsage quotas.IQuota) error
func (*SVirtualizedGuestDriver) CanKeepDetachDisk ¶
func (self *SVirtualizedGuestDriver) CanKeepDetachDisk() bool
func (*SVirtualizedGuestDriver) CheckDiskTemplateOnStorage ¶
func (self *SVirtualizedGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, storageId string, task taskman.ITask) error
func (*SVirtualizedGuestDriver) ChooseHostStorage ¶
func (*SVirtualizedGuestDriver) GetJsonDescAtHost ¶
func (self *SVirtualizedGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
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, userCred mcclient.TokenCredential, host *models.SHost, netConfig *models.SNetworkConfig) (*models.SNetwork, string, int8, models.IPAddlocationDirection)
func (*SVirtualizedGuestDriver) GetRandomNetworkTypes ¶
func (self *SVirtualizedGuestDriver) GetRandomNetworkTypes() []string
func (*SVirtualizedGuestDriver) OnGuestDeployTaskComplete ¶
func (*SVirtualizedGuestDriver) PerformStart ¶
func (self *SVirtualizedGuestDriver) PerformStart(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, data *jsonutils.JSONDict) error
func (*SVirtualizedGuestDriver) PrepareDiskRaidConfig ¶
func (*SVirtualizedGuestDriver) RequestGuestCreateInsertIso ¶
func (*SVirtualizedGuestDriver) RequestStopGuestForDelete ¶
func (*SVirtualizedGuestDriver) StartGuestAttachDiskTask ¶
func (*SVirtualizedGuestDriver) StartGuestDetachdiskTask ¶
func (*SVirtualizedGuestDriver) StartGuestDiskSnapshotTask ¶
func (self *SVirtualizedGuestDriver) StartGuestDiskSnapshotTask(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, params *jsonutils.JSONDict) error
func (*SVirtualizedGuestDriver) StartGuestResetTask ¶
func (self *SVirtualizedGuestDriver) StartGuestResetTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isHard bool, parentTaskId string) error
func (*SVirtualizedGuestDriver) StartGuestRestartTask ¶
func (self *SVirtualizedGuestDriver) StartGuestRestartTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, isForce bool, parentTaskId string) error
func (*SVirtualizedGuestDriver) StartGuestSaveImage ¶
func (*SVirtualizedGuestDriver) StartGuestStopTask ¶
func (*SVirtualizedGuestDriver) StartGuestSyncstatusTask ¶
func (self *SVirtualizedGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SVirtualizedGuestDriver) StartSuspendTask ¶
func (*SVirtualizedGuestDriver) ValidateCreateData ¶
func (self *SVirtualizedGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SVirtualizedGuestDriver) ValidateCreateHostData ¶
Click to show internal directories.
Click to hide internal directories.