guestdrivers

package
v2.2.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 (self *SAliyunGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage

func (*SAliyunGuestDriver) GetDetachDiskStatus

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

func (*SAliyunGuestDriver) GetHypervisor

func (self *SAliyunGuestDriver) GetHypervisor() string

func (*SAliyunGuestDriver) OnGuestDeployTaskDataReceived

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

func (*SAliyunGuestDriver) RequestDeployGuestOnHost

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

func (*SAliyunGuestDriver) RequestDetachDisk

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

func (*SAliyunGuestDriver) RequestDiskSnapshot

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

func (*SAliyunGuestDriver) ValidateCreateData

func (self *SAliyunGuestDriver) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SAzureGuestDriver

type SAzureGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SAzureGuestDriver) ChooseHostStorage

func (self *SAzureGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage

func (*SAzureGuestDriver) GetDetachDiskStatus

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

func (*SAzureGuestDriver) GetHypervisor

func (self *SAzureGuestDriver) GetHypervisor() string

func (*SAzureGuestDriver) OnGuestDeployTaskDataReceived

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

func (*SAzureGuestDriver) RequestDeployGuestOnHost

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

func (*SAzureGuestDriver) RequestDetachDisk

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

func (*SAzureGuestDriver) ValidateCreateData

func (self *SAzureGuestDriver) ValidateCreateData(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 (self *SBaremetalGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage

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 (self *SBaremetalGuestDriver) OnGuestDeployTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) 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(host *models.SHost, params *jsonutils.JSONDict) 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) 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 (self *SBaremetalGuestDriver) RequestStopGuestForDelete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

func (*SBaremetalGuestDriver) RequestStopOnHost

func (self *SBaremetalGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) 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) (jsonutils.JSONObject, error)

func (*SBaremetalGuestDriver) RequestUndeployGuestOnHost

func (self *SBaremetalGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) 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) 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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

func (*SBaremetalGuestDriver) ValidateCreateHostData

func (self *SBaremetalGuestDriver) ValidateCreateHostData(ctx context.Context, userCred mcclient.TokenCredential, bmName string, host *models.SHost, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

type SBaseGuestDriver

type SBaseGuestDriver struct {
}

func (*SBaseGuestDriver) AllowReconfigGuest

func (self *SBaseGuestDriver) AllowReconfigGuest() bool

func (*SBaseGuestDriver) DoGuestCreateDisksTask

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

func (*SBaseGuestDriver) GetDetachDiskStatus

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

func (*SBaseGuestDriver) OnDeleteGuestFinalCleanup

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

func (*SBaseGuestDriver) OnGuestCreateTaskComplete

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

func (*SBaseGuestDriver) RequestChangeVmConfig

func (self *SBaseGuestDriver) RequestChangeVmConfig(ctx context.Context, guest *models.SGuest, task taskman.ITask, vcpuCount, vmemSize int64) 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, 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, task taskman.ITask) 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) RequestSoftReset

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

func (*SBaseGuestDriver) RqeuestSuspendOnHost

func (self *SBaseGuestDriver) RqeuestSuspendOnHost(ctx context.Context, guest *models.SGuest, task taskman.ITask) 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) 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

type SDiskInfo

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

	Metadata map[string]string
}

type SESXiGuestDriver

type SESXiGuestDriver struct {
	SManagedVirtualizedGuestDriver
}

func (*SESXiGuestDriver) CanKeepDetachDisk

func (self *SESXiGuestDriver) CanKeepDetachDisk() bool

func (*SESXiGuestDriver) GetDetachDiskStatus

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

func (*SESXiGuestDriver) GetHypervisor

func (self *SESXiGuestDriver) GetHypervisor() string

func (*SESXiGuestDriver) RequestDeleteDetachedDisk

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

func (*SESXiGuestDriver) RequestGuestHotAddIso

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

func (*SESXiGuestDriver) RequestSyncConfigOnHost

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

type SKVMGuestDriver

type SKVMGuestDriver struct {
	SVirtualizedGuestDriver
}

func (*SKVMGuestDriver) DoGuestCreateDisksTask

func (self *SKVMGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) 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) 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) RequestChangeVmConfig

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

func (*SKVMGuestDriver) RequestDeleteDetachedDisk

func (self *SKVMGuestDriver) RequestDeleteDetachedDisk(ctx context.Context, disk *models.SDisk, task taskman.ITask, isPurge bool) 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, 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, task taskman.ITask) 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) 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) (jsonutils.JSONObject, error)

func (*SKVMGuestDriver) RequestStopOnHost

func (self *SKVMGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, 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) RequestSyncstatusOnHost

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

func (*SKVMGuestDriver) RequestUndeployGuestOnHost

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

func (*SKVMGuestDriver) RqeuestSuspendOnHost

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

type SManagedVMChangeConfig

type SManagedVMChangeConfig struct {
	InstanceId string
	Cpu        int
	Memory     int
}

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 (self *SManagedVirtualizedGuestDriver) DoGuestCreateDisksTask(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

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) RequestChangeVmConfig

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

func (*SManagedVirtualizedGuestDriver) RequestDeleteDetachedDisk

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

func (*SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost

func (self *SManagedVirtualizedGuestDriver) RequestDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, 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) 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 (self *SManagedVirtualizedGuestDriver) RequestStopOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) error

func (*SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost

func (self *SManagedVirtualizedGuestDriver) RequestSyncConfigOnHost(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) (jsonutils.JSONObject, error)

func (*SManagedVirtualizedGuestDriver) RequestUndeployGuestOnHost

func (self *SManagedVirtualizedGuestDriver) RequestUndeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost, task taskman.ITask) 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) 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 (self *SVirtualizedGuestDriver) ChooseHostStorage(host *models.SHost, backend string) *models.SStorage

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 (self *SVirtualizedGuestDriver) OnGuestDeployTaskComplete(ctx context.Context, guest *models.SGuest, task taskman.ITask) error

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(host *models.SHost, params *jsonutils.JSONDict) 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, task taskman.ITask) 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) 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 (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) 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, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

func (*SVirtualizedGuestDriver) ValidateCreateHostData

func (self *SVirtualizedGuestDriver) ValidateCreateHostData(ctx context.Context, userCred mcclient.TokenCredential, bmName string, host *models.SHost, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)

Jump to

Keyboard shortcuts

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