Documentation ¶
Index ¶
- type SAliyunGuestDriver
- func (self *SAliyunGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage
- func (self *SAliyunGuestDriver) GetHypervisor() string
- func (self *SAliyunGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
- 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) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SAliyunVMCreateConfig
- type SBaremetalGuestDriver
- func (self *SBaremetalGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- 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) 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) 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(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, ...) (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) 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) 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) 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)
- type SBaseGuestDriver
- 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) RequestDetachDisksFromGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SBaseGuestDriver) StartDeleteGuestTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (self *SBaseGuestDriver) StartGuestCreateTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- type SDiskInfo
- type SESXiGuestDriver
- type SKVMGuestDriver
- func (self *SKVMGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SKVMGuestDriver) GetHypervisor() string
- 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) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SKVMGuestDriver) RequestDetachDisksFromGuestForDelete(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) RequestStartOnHost(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SKVMGuestDriver) RequestStopOnHost(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
- type SManagedVirtualizedGuestDriver
- func (self *SManagedVirtualizedGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
- func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, ...) error
- func (self *SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks(ctx context.Context, guest *models.SGuest, task taskman.ITask) error
- func (self *SManagedVirtualizedGuestDriver) RequestStartOnHost(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (self *SManagedVirtualizedGuestDriver) RequestStopOnHost(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 SVirtualizedGuestDriver
- func (self *SVirtualizedGuestDriver) Attach2RandomNetwork(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, ...) error
- 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) 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) 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) 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SAliyunGuestDriver ¶
type SAliyunGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SAliyunGuestDriver) ChooseHostStorage ¶
func (*SAliyunGuestDriver) GetHypervisor ¶
func (self *SAliyunGuestDriver) GetHypervisor() string
func (*SAliyunGuestDriver) GetJsonDescAtHost ¶
func (self *SAliyunGuestDriver) GetJsonDescAtHost(ctx context.Context, guest *models.SGuest, host *models.SHost) jsonutils.JSONObject
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) ValidateCreateData ¶
func (self *SAliyunGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SAliyunVMCreateConfig ¶
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) CheckDiskTemplateOnStorage ¶
func (self *SBaremetalGuestDriver) CheckDiskTemplateOnStorage(ctx context.Context, userCred mcclient.TokenCredential, imageId string, storageId string, task taskman.ITask) error
func (*SBaremetalGuestDriver) ChooseHostStorage ¶
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) 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(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SBaremetalGuestDriver) RequestStopGuestForDelete ¶
func (*SBaremetalGuestDriver) RequestStopOnHost ¶
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) StartGuestStopTask ¶
func (*SBaremetalGuestDriver) StartGuestSyncstatusTask ¶
func (self *SBaremetalGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
func (*SBaremetalGuestDriver) ValidateCreateData ¶
func (self *SBaremetalGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
func (*SBaremetalGuestDriver) ValidateCreateHostData ¶
type SBaseGuestDriver ¶
type SBaseGuestDriver struct { }
func (*SBaseGuestDriver) OnDeleteGuestFinalCleanup ¶
func (self *SBaseGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential) error
func (*SBaseGuestDriver) OnGuestCreateTaskComplete ¶
func (*SBaseGuestDriver) RequestDetachDisksFromGuestForDelete ¶
func (*SBaseGuestDriver) StartDeleteGuestTask ¶
func (*SBaseGuestDriver) StartGuestCreateTask ¶
type SESXiGuestDriver ¶
type SESXiGuestDriver struct {
SManagedVirtualizedGuestDriver
}
func (*SESXiGuestDriver) GetHypervisor ¶
func (self *SESXiGuestDriver) GetHypervisor() string
type SKVMGuestDriver ¶
type SKVMGuestDriver struct {
SVirtualizedGuestDriver
}
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) 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) RequestDeployGuestOnHost ¶
func (*SKVMGuestDriver) RequestDetachDisksFromGuestForDelete ¶
func (*SKVMGuestDriver) RequestGuestCreateAllDisks ¶
func (*SKVMGuestDriver) RequestStartOnHost ¶
func (self *SKVMGuestDriver) RequestStartOnHost(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SKVMGuestDriver) RequestStopOnHost ¶
func (*SKVMGuestDriver) RequestSyncstatusOnHost ¶
func (self *SKVMGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, error)
type SManagedVirtualizedGuestDriver ¶
type SManagedVirtualizedGuestDriver struct {
SVirtualizedGuestDriver
}
func (*SManagedVirtualizedGuestDriver) GetGuestVncInfo ¶
func (self *SManagedVirtualizedGuestDriver) GetGuestVncInfo(userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost) (*jsonutils.JSONDict, error)
func (*SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived ¶
func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx context.Context, guest *models.SGuest, task taskman.ITask, data jsonutils.JSONObject) error
func (*SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost ¶
func (*SManagedVirtualizedGuestDriver) RequestGuestCreateAllDisks ¶
func (*SManagedVirtualizedGuestDriver) RequestStartOnHost ¶
func (self *SManagedVirtualizedGuestDriver) RequestStartOnHost(guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential, task taskman.ITask) (jsonutils.JSONObject, error)
func (*SManagedVirtualizedGuestDriver) RequestStopOnHost ¶
func (*SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost ¶
func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, userCred mcclient.TokenCredential) (jsonutils.JSONObject, 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 *models.SNetworkConfig, pendingUsage quotas.IQuota) error
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) 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) StartGuestStopTask ¶
func (*SVirtualizedGuestDriver) StartGuestSyncstatusTask ¶
func (self *SVirtualizedGuestDriver) StartGuestSyncstatusTask(guest *models.SGuest, ctx context.Context, userCred mcclient.TokenCredential, parentTaskId string) error
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.