tasks

package
v2.3.22+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEDULE        = models.VM_SCHEDULE
	SCHEDULE_FAILED = models.VM_SCHEDULE_FAILED
)

Variables

This section is empty.

Functions

func StartScheduleObjects

func StartScheduleObjects(
	ctx context.Context,
	task IScheduleTask,
	objs []db.IStandaloneModel,
)

Types

type BaremetalConvertHypervisorTask

type BaremetalConvertHypervisorTask struct {
	taskman.STask
}

func (*BaremetalConvertHypervisorTask) OnFailedSyncstatusComplete

func (self *BaremetalConvertHypervisorTask) OnFailedSyncstatusComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalConvertHypervisorTask) OnGuestDeleteComplete

func (self *BaremetalConvertHypervisorTask) OnGuestDeleteComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalConvertHypervisorTask) OnGuestDeployComplete

func (self *BaremetalConvertHypervisorTask) OnGuestDeployComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalConvertHypervisorTask) OnGuestDeployCompleteFailed

func (self *BaremetalConvertHypervisorTask) OnGuestDeployCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalConvertHypervisorTask) OnInit

type BaremetalDeleteTask

type BaremetalDeleteTask struct {
	SBaremetalBaseTask
}

func (*BaremetalDeleteTask) OnDeleteBaremetalComplete

func (self *BaremetalDeleteTask) OnDeleteBaremetalComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalDeleteTask) OnDeleteBaremetalCompleteFailed

func (self *BaremetalDeleteTask) OnDeleteBaremetalCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalDeleteTask) OnFailure

func (self *BaremetalDeleteTask) OnFailure(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalDeleteTask) OnInit

type BaremetalMaintenanceTask

type BaremetalMaintenanceTask struct {
	SBaremetalBaseTask
}

func (*BaremetalMaintenanceTask) OnEnterMaintenantModeSucc

func (self *BaremetalMaintenanceTask) OnEnterMaintenantModeSucc(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalMaintenanceTask) OnEnterMaintenantModeSuccFailed

func (self *BaremetalMaintenanceTask) OnEnterMaintenantModeSuccFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalMaintenanceTask) OnInit

type BaremetalPrepareTask

type BaremetalPrepareTask struct {
	SBaremetalBaseTask
}

func (*BaremetalPrepareTask) OnFailure

func (self *BaremetalPrepareTask) OnFailure(ctx context.Context, baremetal *models.SHost, reason string)

func (*BaremetalPrepareTask) OnInit

func (*BaremetalPrepareTask) OnSyncConfigComplete

func (self *BaremetalPrepareTask) OnSyncConfigComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalPrepareTask) OnSyncConfigCompleteFailed

func (self *BaremetalPrepareTask) OnSyncConfigCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

type BaremetalServerResetTask

type BaremetalServerResetTask struct {
	SGuestBaseTask
}

func (*BaremetalServerResetTask) OnInit

type BaremetalServerStartTask

type BaremetalServerStartTask struct {
	SGuestBaseTask
}

func (*BaremetalServerStartTask) OnInit

func (*BaremetalServerStartTask) OnStartComplete

func (self *BaremetalServerStartTask) OnStartComplete(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)

func (*BaremetalServerStartTask) OnStartCompleteFailed

func (self *BaremetalServerStartTask) OnStartCompleteFailed(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)

type BaremetalServerStopTask

type BaremetalServerStopTask struct {
	SGuestBaseTask
}

func (*BaremetalServerStopTask) OnGuestStopTaskComplete

func (self *BaremetalServerStopTask) OnGuestStopTaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*BaremetalServerStopTask) OnGuestStopTaskCompleteFailed

func (self *BaremetalServerStopTask) OnGuestStopTaskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*BaremetalServerStopTask) OnInit

func (*BaremetalServerStopTask) OnStopGuestFail

func (self *BaremetalServerStopTask) OnStopGuestFail(ctx context.Context, guest *models.SGuest, reason string)

type BaremetalServerSyncStatusTask

type BaremetalServerSyncStatusTask struct {
	SGuestBaseTask
}

func (*BaremetalServerSyncStatusTask) OnGetStatusFail

func (self *BaremetalServerSyncStatusTask) OnGetStatusFail(ctx context.Context, guest *models.SGuest)

func (*BaremetalServerSyncStatusTask) OnGuestStatusTaskComplete

func (self *BaremetalServerSyncStatusTask) OnGuestStatusTaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*BaremetalServerSyncStatusTask) OnGuestStatusTaskCompleteFailed

func (self *BaremetalServerSyncStatusTask) OnGuestStatusTaskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*BaremetalServerSyncStatusTask) OnInit

type BaremetalSyncAllGuestsStatusTask

type BaremetalSyncAllGuestsStatusTask struct {
	SBaremetalBaseTask
}

func (*BaremetalSyncAllGuestsStatusTask) OnGuestSyncStatusComplete

func (self *BaremetalSyncAllGuestsStatusTask) OnGuestSyncStatusComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalSyncAllGuestsStatusTask) OnInit

type BaremetalSyncStatusTask

type BaremetalSyncStatusTask struct {
	SBaremetalBaseTask
}

func (*BaremetalSyncStatusTask) DoSyncStatus

func (self *BaremetalSyncStatusTask) DoSyncStatus(ctx context.Context, baremetal *models.SHost)

func (*BaremetalSyncStatusTask) OnInit

type BaremetalUnconvertHypervisorTask

type BaremetalUnconvertHypervisorTask struct {
	SBaremetalBaseTask
}

func (*BaremetalUnconvertHypervisorTask) OnFailSyncstatusComplete

func (self *BaremetalUnconvertHypervisorTask) OnFailSyncstatusComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalUnconvertHypervisorTask) OnGuestDeleteComplete

func (self *BaremetalUnconvertHypervisorTask) OnGuestDeleteComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalUnconvertHypervisorTask) OnGuestDeleteCompleteFailed

func (self *BaremetalUnconvertHypervisorTask) OnGuestDeleteCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

func (*BaremetalUnconvertHypervisorTask) OnInit

func (*BaremetalUnconvertHypervisorTask) OnPrepareComplete

func (self *BaremetalUnconvertHypervisorTask) OnPrepareComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

type BaremetalUnmaintenanceTask

type BaremetalUnmaintenanceTask struct {
	SBaremetalBaseTask
}

func (*BaremetalUnmaintenanceTask) OnInit

func (*BaremetalUnmaintenanceTask) OnUnmaintenantComplete

func (self *BaremetalUnmaintenanceTask) OnUnmaintenantComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)

type BatchSnapshotsDeleteTask

type BatchSnapshotsDeleteTask struct {
	taskman.STask
}

func (*BatchSnapshotsDeleteTask) OnInit

func (*BatchSnapshotsDeleteTask) OnStorageDeleteSnapshot

func (self *BatchSnapshotsDeleteTask) OnStorageDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)

func (*BatchSnapshotsDeleteTask) StartStorageDeleteSnapshot

func (self *BatchSnapshotsDeleteTask) StartStorageDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot)

type CloudAccountImportTask

type CloudAccountImportTask struct {
	taskman.STask
}

func (*CloudAccountImportTask) OnInit

func (*CloudAccountImportTask) SyncNewCloudProviderComplete

func (self *CloudAccountImportTask) SyncNewCloudProviderComplete(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)

type CloudAccountSyncInfoTask

type CloudAccountSyncInfoTask struct {
	taskman.STask
}

func (*CloudAccountSyncInfoTask) OnCloudaccountSyncComplete

func (self *CloudAccountSyncInfoTask) OnCloudaccountSyncComplete(ctx context.Context, items []db.IStandaloneModel, data jsonutils.JSONObject)

func (*CloudAccountSyncInfoTask) OnInit

func (*CloudAccountSyncInfoTask) SyncCloudaccount

func (self *CloudAccountSyncInfoTask) SyncCloudaccount(ctx context.Context, account *models.SCloudaccount, cloudproviders []*models.SCloudprovider, syncRange *models.SSyncRange)

func (*CloudAccountSyncInfoTask) SyncCloudprovider

func (self *CloudAccountSyncInfoTask) SyncCloudprovider(ctx context.Context, cloudprovider *models.SCloudprovider, syncRange *models.SSyncRange)

type CloudProviderSyncInfoTask

type CloudProviderSyncInfoTask struct {
	taskman.STask
}

func (*CloudProviderSyncInfoTask) OnInit

type DiskBatchCreateTask

type DiskBatchCreateTask struct {
	taskman.STask
}

func (*DiskBatchCreateTask) OnInit

func (self *DiskBatchCreateTask) OnInit(ctx context.Context, objs []db.IStandaloneModel, body jsonutils.JSONObject)

func (*DiskBatchCreateTask) OnScheduleComplete

func (self *DiskBatchCreateTask) OnScheduleComplete(ctx context.Context, items []db.IStandaloneModel, data *jsonutils.JSONDict)

func (*DiskBatchCreateTask) OnScheduleFailCallback

func (self *DiskBatchCreateTask) OnScheduleFailCallback(obj IScheduleModel)

func (*DiskBatchCreateTask) SaveScheduleResult

func (self *DiskBatchCreateTask) SaveScheduleResult(ctx context.Context, obj IScheduleModel, hostId string)

type DiskCleanUpSnapshotsTask

type DiskCleanUpSnapshotsTask struct {
	SDiskBaseTask
}

func (*DiskCleanUpSnapshotsTask) OnCleanUpSnapshots

func (self *DiskCleanUpSnapshotsTask) OnCleanUpSnapshots(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskCleanUpSnapshotsTask) OnCleanUpSnapshotsFailed

func (self *DiskCleanUpSnapshotsTask) OnCleanUpSnapshotsFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskCleanUpSnapshotsTask) OnInit

func (*DiskCleanUpSnapshotsTask) StartCleanUpSnapshots

func (self *DiskCleanUpSnapshotsTask) StartCleanUpSnapshots(ctx context.Context, disk *models.SDisk)

type DiskCreateTask

type DiskCreateTask struct {
	SDiskBaseTask
}

func (*DiskCreateTask) OnDiskReady

func (self *DiskCreateTask) OnDiskReady(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskCreateTask) OnDiskReadyFailed

func (self *DiskCreateTask) OnDiskReadyFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskCreateTask) OnInit

func (self *DiskCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*DiskCreateTask) OnStartAllocateFailed

func (self *DiskCreateTask) OnStartAllocateFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskCreateTask) OnStorageCacheImageComplete

func (self *DiskCreateTask) OnStorageCacheImageComplete(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

type DiskDeleteTask

type DiskDeleteTask struct {
	SDiskBaseTask
}

func (*DiskDeleteTask) OnGuestDiskDeleteFailed

func (self *DiskDeleteTask) OnGuestDiskDeleteFailed(ctx context.Context, disk *models.SDisk, resion error)

func (*DiskDeleteTask) OnGuestDiskDeleteSucc

func (self *DiskDeleteTask) OnGuestDiskDeleteSucc(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*DiskDeleteTask) OnInit

func (self *DiskDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type DiskResetTask

type DiskResetTask struct {
	SDiskBaseTask
}

func (*DiskResetTask) OnInit

func (self *DiskResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*DiskResetTask) OnRequestResetDisk

func (self *DiskResetTask) OnRequestResetDisk(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskResetTask) OnStartGuest

func (self *DiskResetTask) OnStartGuest(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskResetTask) RequestResetDisk

func (self *DiskResetTask) RequestResetDisk(ctx context.Context, disk *models.SDisk, host *models.SHost)

func (*DiskResetTask) TaskCompleted

func (self *DiskResetTask) TaskCompleted(ctx context.Context, disk *models.SDisk, data *jsonutils.JSONDict)

func (*DiskResetTask) TaskFailed

func (self *DiskResetTask) TaskFailed(ctx context.Context, disk *models.SDisk, reason string)

type DiskResizeTask

type DiskResizeTask struct {
	SDiskBaseTask
}

func (*DiskResizeTask) OnDiskResizeComplete

func (self *DiskResizeTask) OnDiskResizeComplete(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskResizeTask) OnDiskResizeCompleteFailed

func (self *DiskResizeTask) OnDiskResizeCompleteFailed(ctx context.Context, disk *models.SDisk, reason error)

func (*DiskResizeTask) OnInit

func (self *DiskResizeTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*DiskResizeTask) OnStartResizeDiskFailed

func (self *DiskResizeTask) OnStartResizeDiskFailed(ctx context.Context, disk *models.SDisk, reason error)

func (*DiskResizeTask) OnStartResizeDiskSucc

func (self *DiskResizeTask) OnStartResizeDiskSucc(ctx context.Context, disk *models.SDisk)

func (*DiskResizeTask) StartResizeDisk

func (self *DiskResizeTask) StartResizeDisk(ctx context.Context, host *models.SHost, storage *models.SStorage, disk *models.SDisk, online bool)

type DiskSaveTask

type DiskSaveTask struct {
	SDiskBaseTask
}

func (*DiskSaveTask) GetMasterHost

func (self *DiskSaveTask) GetMasterHost(disk *models.SDisk) *models.SHost

func (*DiskSaveTask) OnDiskBackupComplete

func (self *DiskSaveTask) OnDiskBackupComplete(ctx context.Context, disk *models.SDisk, data *jsonutils.JSONDict)

func (*DiskSaveTask) OnDiskBackupCompleteFailed

func (self *DiskSaveTask) OnDiskBackupCompleteFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)

func (*DiskSaveTask) OnInit

func (self *DiskSaveTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*DiskSaveTask) RefreshImageCache

func (self *DiskSaveTask) RefreshImageCache(ctx context.Context, imageId string)

func (*DiskSaveTask) StartBackupDisk

func (self *DiskSaveTask) StartBackupDisk(ctx context.Context, disk *models.SDisk, host *models.SHost)

func (*DiskSaveTask) TaskFailed

func (self *DiskSaveTask) TaskFailed(ctx context.Context, resion string)

func (*DiskSaveTask) UploadDisk

func (self *DiskSaveTask) UploadDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, data *jsonutils.JSONDict) error

type EipAllocateTask

type EipAllocateTask struct {
	taskman.STask
}

func (*EipAllocateTask) OnEipAssociateComplete

func (self *EipAllocateTask) OnEipAssociateComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*EipAllocateTask) OnInit

func (self *EipAllocateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type EipAssociateTask

type EipAssociateTask struct {
	taskman.STask
}

func (*EipAssociateTask) OnInit

func (*EipAssociateTask) TaskFail

func (self *EipAssociateTask) TaskFail(ctx context.Context, eip *models.SElasticip, msg string, vm *models.SGuest)

type EipChangeBandwidthTask

type EipChangeBandwidthTask struct {
	taskman.STask
}

func (*EipChangeBandwidthTask) OnInit

type EipDeallocateTask

type EipDeallocateTask struct {
	taskman.STask
}

func (*EipDeallocateTask) OnInit

type EipDissociateTask

type EipDissociateTask struct {
	taskman.STask
}

func (*EipDissociateTask) OnInit

func (*EipDissociateTask) TaskFail

func (self *EipDissociateTask) TaskFail(ctx context.Context, eip *models.SElasticip, msg string, vm *models.SGuest)

type EipSyncstatusTask

type EipSyncstatusTask struct {
	taskman.STask
}

func (*EipSyncstatusTask) OnInit

type GuestAttachDiskTask

type GuestAttachDiskTask struct {
	SGuestBaseTask
}

func (*GuestAttachDiskTask) OnInit

func (*GuestAttachDiskTask) OnSyncConfigComplete

func (self *GuestAttachDiskTask) OnSyncConfigComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestAttachDiskTask) OnSyncConfigCompleteFailed

func (self *GuestAttachDiskTask) OnSyncConfigCompleteFailed(ctx context.Context, obj db.IStandaloneModel, resion jsonutils.JSONObject)

func (*GuestAttachDiskTask) OnTaskFail

func (self *GuestAttachDiskTask) OnTaskFail(ctx context.Context, guest *models.SGuest, disk *models.SDisk, err error)

type GuestBatchCreateTask

type GuestBatchCreateTask struct {
	taskman.STask
}

func (*GuestBatchCreateTask) OnInit

func (*GuestBatchCreateTask) OnScheduleComplete

func (self *GuestBatchCreateTask) OnScheduleComplete(ctx context.Context, items []db.IStandaloneModel, data *jsonutils.JSONDict)

func (*GuestBatchCreateTask) OnScheduleFailCallback

func (self *GuestBatchCreateTask) OnScheduleFailCallback(obj IScheduleModel)

func (*GuestBatchCreateTask) SaveScheduleResult

func (self *GuestBatchCreateTask) SaveScheduleResult(ctx context.Context, obj IScheduleModel, hostId string)

type GuestChangeConfigTask

type GuestChangeConfigTask struct {
	SGuestBaseTask
}

func (*GuestChangeConfigTask) DoCreateDisksTask

func (self *GuestChangeConfigTask) DoCreateDisksTask(ctx context.Context, guest *models.SGuest)

func (*GuestChangeConfigTask) OnCreateDisksComplete

func (self *GuestChangeConfigTask) OnCreateDisksComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestChangeConfigTask) OnCreateDisksCompleteFailed

func (self *GuestChangeConfigTask) OnCreateDisksCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestChangeConfigTask) OnDisksResizeComplete

func (self *GuestChangeConfigTask) OnDisksResizeComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestChangeConfigTask) OnGuestStartComplete

func (self *GuestChangeConfigTask) OnGuestStartComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestChangeConfigTask) OnInit

func (*GuestChangeConfigTask) OnSyncStatusComplete

func (self *GuestChangeConfigTask) OnSyncStatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type GuestCreateDiskTask

type GuestCreateDiskTask struct {
	SGuestBaseTask
}

func (*GuestCreateDiskTask) OnDiskPrepared

func (self *GuestCreateDiskTask) OnDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateDiskTask) OnDiskPreparedFailed

func (self *GuestCreateDiskTask) OnDiskPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateDiskTask) OnInit

type GuestCreateTask

type GuestCreateTask struct {
	SGuestBaseTask
}

func (*GuestCreateTask) OnAutoStartGuest

func (self *GuestCreateTask) OnAutoStartGuest(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnCdromPrepared

func (self *GuestCreateTask) OnCdromPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnCdromPreparedFailed

func (self *GuestCreateTask) OnCdromPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnDeployGuestDescComplete

func (self *GuestCreateTask) OnDeployGuestDescComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnDeployGuestDescCompleteFailed

func (self *GuestCreateTask) OnDeployGuestDescCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnDiskPrepared

func (self *GuestCreateTask) OnDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnDiskPreparedFailed

func (self *GuestCreateTask) OnDiskPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnGuestNetworkReady

func (self *GuestCreateTask) OnGuestNetworkReady(ctx context.Context, guest *models.SGuest)

func (*GuestCreateTask) OnInit

func (self *GuestCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)

func (*GuestCreateTask) OnSyncStatusComplete

func (self *GuestCreateTask) OnSyncStatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) OnWaitGuestNetworksReady

func (self *GuestCreateTask) OnWaitGuestNetworksReady(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestCreateTask) StartDeployGuest

func (self *GuestCreateTask) StartDeployGuest(ctx context.Context, guest *models.SGuest)

type GuestDeleteTask

type GuestDeleteTask struct {
	SGuestBaseTask
}

func (*GuestDeleteTask) DeleteGuest

func (self *GuestDeleteTask) DeleteGuest(ctx context.Context, guest *models.SGuest)

func (*GuestDeleteTask) DoDeleteGuest

func (self *GuestDeleteTask) DoDeleteGuest(ctx context.Context, guest *models.SGuest)

func (*GuestDeleteTask) NotifyServerDeleted

func (self *GuestDeleteTask) NotifyServerDeleted(ctx context.Context, guest *models.SGuest)

func (*GuestDeleteTask) OnEipDissociateComplete

func (self *GuestDeleteTask) OnEipDissociateComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnEipDissociateCompleteFailed

func (self *GuestDeleteTask) OnEipDissociateCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestDeleteTask) OnFailed

func (self *GuestDeleteTask) OnFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestDeleteComplete

func (self *GuestDeleteTask) OnGuestDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestDeleteCompleteFailed

func (self *GuestDeleteTask) OnGuestDeleteCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestDeleteFailed

func (self *GuestDeleteTask) OnGuestDeleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestDetachDisksComplete

func (self *GuestDeleteTask) OnGuestDetachDisksComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestDetachDisksCompleteFailed

func (self *GuestDeleteTask) OnGuestDetachDisksCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestStopComplete

func (self *GuestDeleteTask) OnGuestStopComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnGuestStopCompleteFailed

func (self *GuestDeleteTask) OnGuestStopCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestDeleteTask) OnInit

func (self *GuestDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnPendingDeleteComplete

func (self *GuestDeleteTask) OnPendingDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnSyncGuestConfComplete

func (self *GuestDeleteTask) OnSyncGuestConfComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeleteTask) OnSyncGuestConfCompleteFailed

func (self *GuestDeleteTask) OnSyncGuestConfCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestDeleteTask) StartDeleteGuest

func (self *GuestDeleteTask) StartDeleteGuest(ctx context.Context, guest *models.SGuest)

func (*GuestDeleteTask) StartPendingDeleteGuest

func (self *GuestDeleteTask) StartPendingDeleteGuest(ctx context.Context, guest *models.SGuest)

type GuestDeployTask

type GuestDeployTask struct {
	SGuestBaseTask
}

func (*GuestDeployTask) OnDeployGuestComplete

func (self *GuestDeployTask) OnDeployGuestComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) OnDeployGuestCompleteFailed

func (self *GuestDeployTask) OnDeployGuestCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) OnDeployGuestFail

func (self *GuestDeployTask) OnDeployGuestFail(ctx context.Context, guest *models.SGuest, err error)

func (*GuestDeployTask) OnDeployGuestSyncstatusComplete

func (self *GuestDeployTask) OnDeployGuestSyncstatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) OnDeployStartGuestComplete

func (self *GuestDeployTask) OnDeployStartGuestComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) OnDeployWaitServerStop

func (self *GuestDeployTask) OnDeployWaitServerStop(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) OnGuestNetworkReady

func (self *GuestDeployTask) OnGuestNetworkReady(ctx context.Context, guest *models.SGuest)

func (*GuestDeployTask) OnInit

func (self *GuestDeployTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDeployTask) StartDeployGuestOnHost

func (self *GuestDeployTask) StartDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost)

type GuestDetachAllDisksTask

type GuestDetachAllDisksTask struct {
	SGuestBaseTask
}

func (*GuestDetachAllDisksTask) OnDiskDeleteComplete

func (self *GuestDetachAllDisksTask) OnDiskDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDetachAllDisksTask) OnInit

type GuestDetachDiskTask

type GuestDetachDiskTask struct {
	SGuestBaseTask
}

func (*GuestDetachDiskTask) OnDiskDeleteComplete

func (self *GuestDetachDiskTask) OnDiskDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestDetachDiskTask) OnInit

func (*GuestDetachDiskTask) OnSyncConfigComplete

func (self *GuestDetachDiskTask) OnSyncConfigComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestDetachDiskTask) OnSyncConfigCompleteFailed

func (self *GuestDetachDiskTask) OnSyncConfigCompleteFailed(ctx context.Context, obj db.IStandaloneModel, resion jsonutils.JSONObject)

func (*GuestDetachDiskTask) OnTaskFail

func (self *GuestDetachDiskTask) OnTaskFail(ctx context.Context, guest *models.SGuest, disk *models.SDisk, err error)

type GuestDiskSnapshotTask

type GuestDiskSnapshotTask struct {
	SGuestBaseTask
}

func (*GuestDiskSnapshotTask) DoDiskSnapshot

func (self *GuestDiskSnapshotTask) DoDiskSnapshot(ctx context.Context, guest *models.SGuest)

func (*GuestDiskSnapshotTask) OnAutoDeleteSnapshot

func (self *GuestDiskSnapshotTask) OnAutoDeleteSnapshot(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) OnAutoDeleteSnapshotFailed

func (self *GuestDiskSnapshotTask) OnAutoDeleteSnapshotFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) OnDiskSnapshotComplete

func (self *GuestDiskSnapshotTask) OnDiskSnapshotComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) OnDiskSnapshotCompleteFailed

func (self *GuestDiskSnapshotTask) OnDiskSnapshotCompleteFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) OnInit

func (*GuestDiskSnapshotTask) OnSyncStatus

func (self *GuestDiskSnapshotTask) OnSyncStatus(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) TaskComplete

func (self *GuestDiskSnapshotTask) TaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestDiskSnapshotTask) TaskFailed

func (self *GuestDiskSnapshotTask) TaskFailed(ctx context.Context, guest *models.SGuest, reason string)

type GuestHardResetTask

type GuestHardResetTask struct {
	SGuestBaseTask
}

func (*GuestHardResetTask) OnInit

func (*GuestHardResetTask) OnServerStartComplete

func (self *GuestHardResetTask) OnServerStartComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestHardResetTask) OnServerStopComplete

func (self *GuestHardResetTask) OnServerStopComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestHardResetTask) StartServer

func (self *GuestHardResetTask) StartServer(ctx context.Context, guest *models.SGuest)

func (*GuestHardResetTask) StopServer

func (self *GuestHardResetTask) StopServer(ctx context.Context, guest *models.SGuest)

type GuestInsertIsoTask

type GuestInsertIsoTask struct {
	SGuestBaseTask
}

func (*GuestInsertIsoTask) OnConfigSyncComplete

func (self *GuestInsertIsoTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestInsertIsoTask) OnInit

func (*GuestInsertIsoTask) OnIsoPrepareComplete

func (self *GuestInsertIsoTask) OnIsoPrepareComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestInsertIsoTask) OnIsoPrepareCompleteFailed

func (self *GuestInsertIsoTask) OnIsoPrepareCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type GuestLiveMigrateTask

type GuestLiveMigrateTask struct {
	GuestMigrateTask
}

func (*GuestLiveMigrateTask) OnLiveMigrateComplete

func (self *GuestLiveMigrateTask) OnLiveMigrateComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnLiveMigrateCompleteFailed

func (self *GuestLiveMigrateTask) OnLiveMigrateCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnResumeDestGuestComplete

func (self *GuestLiveMigrateTask) OnResumeDestGuestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnResumeDestGuestCompleteFailed

func (self *GuestLiveMigrateTask) OnResumeDestGuestCompleteFailed(ctx context.Context,
	guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnStartDestComplete

func (self *GuestLiveMigrateTask) OnStartDestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnStartDestCompleteFailed

func (self *GuestLiveMigrateTask) OnStartDestCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnStartGeustComplete

func (self *GuestLiveMigrateTask) OnStartGeustComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestLiveMigrateTask) OnUndeploySrcGuestComplete

func (self *GuestLiveMigrateTask) OnUndeploySrcGuestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

type GuestMigrateTask

type GuestMigrateTask struct {
	SGuestBaseTask
}

func (*GuestMigrateTask) FindCandidataTarget

func (self *GuestMigrateTask) FindCandidataTarget(ctx context.Context, guest *models.SGuest)

func (*GuestMigrateTask) OnCachedImageComplete

func (self *GuestMigrateTask) OnCachedImageComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

For local storage get disk info

func (*GuestMigrateTask) OnInit

func (*GuestMigrateTask) OnMigrateConfAndDiskComplete

func (self *GuestMigrateTask) OnMigrateConfAndDiskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) OnMigrateConfAndDiskCompleteFailed

func (self *GuestMigrateTask) OnMigrateConfAndDiskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) OnNormalMigrateComplete

func (self *GuestMigrateTask) OnNormalMigrateComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) OnScheduleComplete

func (self *GuestMigrateTask) OnScheduleComplete(ctx context.Context, guest *models.SGuest, results []jsonutils.JSONObject)

func (*GuestMigrateTask) OnSrcPrepareComplete

func (self *GuestMigrateTask) OnSrcPrepareComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) OnSrcPrepareCompleteFailed

func (self *GuestMigrateTask) OnSrcPrepareCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) OnUndeployOldHostSucc

func (self *GuestMigrateTask) OnUndeployOldHostSucc(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestMigrateTask) TaskFailed

func (self *GuestMigrateTask) TaskFailed(ctx context.Context, guest *models.SGuest, reason string)

type GuestRebuildRootTask

type GuestRebuildRootTask struct {
	SGuestBaseTask
}

func (*GuestRebuildRootTask) OnGuestStartComplete

func (self *GuestRebuildRootTask) OnGuestStartComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestRebuildRootTask) OnInit

func (*GuestRebuildRootTask) OnRebuildRootDiskComplete

func (self *GuestRebuildRootTask) OnRebuildRootDiskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestRebuildRootTask) OnRebuildRootDiskCompleteFailed

func (self *GuestRebuildRootTask) OnRebuildRootDiskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestRebuildRootTask) OnStopServerComplete

func (self *GuestRebuildRootTask) OnStopServerComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestRebuildRootTask) OnSyncStatusComplete

func (self *GuestRebuildRootTask) OnSyncStatusComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestRebuildRootTask) StartRebuildRootDisk

func (self *GuestRebuildRootTask) StartRebuildRootDisk(ctx context.Context, guest *models.SGuest)

type GuestRestartTask

type GuestRestartTask struct {
	GuestHardResetTask
}

func (*GuestRestartTask) StopServer

func (self *GuestRestartTask) StopServer(ctx context.Context, guest *models.SGuest)

type GuestSaveImageTask

type GuestSaveImageTask struct {
	SGuestBaseTask
}

func (*GuestSaveImageTask) OnInit

func (*GuestSaveImageTask) OnSaveRootImageComplete

func (self *GuestSaveImageTask) OnSaveRootImageComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestSaveImageTask) OnSaveRootImageCompleteFailed

func (self *GuestSaveImageTask) OnSaveRootImageCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestSaveImageTask) OnStartServerCompleteFailed

func (self *GuestSaveImageTask) OnStartServerCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestSaveImageTask) OnStopServerComplete

func (self *GuestSaveImageTask) OnStopServerComplete(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)

type GuestSoftResetTask

type GuestSoftResetTask struct {
	SGuestBaseTask
}

func (*GuestSoftResetTask) OnInit

type GuestStartTask

type GuestStartTask struct {
	SGuestBaseTask
}

func (*GuestStartTask) OnGuestSyncstatusAfterStart

func (self *GuestStartTask) OnGuestSyncstatusAfterStart(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestStartTask) OnInit

func (self *GuestStartTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestStartTask) OnStartComplete

func (self *GuestStartTask) OnStartComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestStartTask) OnStartCompleteFailed

func (self *GuestStartTask) OnStartCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestStartTask) OnStartTemplateReady

func (self *GuestStartTask) OnStartTemplateReady(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type GuestStopTask

type GuestStopTask struct {
	SGuestBaseTask
}

func (*GuestStopTask) OnGuestStopTaskComplete

func (self *GuestStopTask) OnGuestStopTaskComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestStopTask) OnInit

func (self *GuestStopTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestStopTask) OnStopGuestFail

func (self *GuestStopTask) OnStopGuestFail(ctx context.Context, guest *models.SGuest, err error)

type GuestSuspendTask

type GuestSuspendTask struct {
	SGuestBaseTask
}

func (*GuestSuspendTask) OnInit

func (*GuestSuspendTask) OnSuspendComplete

func (self *GuestSuspendTask) OnSuspendComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestSuspendTask) OnSuspendCompleteFailed

func (self *GuestSuspendTask) OnSuspendCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)

func (*GuestSuspendTask) OnSuspendGuestFail

func (self *GuestSuspendTask) OnSuspendGuestFail(guest *models.SGuest, reason string)

type GuestSyncConfTask

type GuestSyncConfTask struct {
	SGuestBaseTask
}

func (*GuestSyncConfTask) OnDiskSyncComplete

func (self *GuestSyncConfTask) OnDiskSyncComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

func (*GuestSyncConfTask) OnDiskSyncCompleteFailed

func (self *GuestSyncConfTask) OnDiskSyncCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestSyncConfTask) OnInit

func (*GuestSyncConfTask) OnSyncComplete

func (self *GuestSyncConfTask) OnSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestSyncConfTask) OnSyncCompleteFailed

func (self *GuestSyncConfTask) OnSyncCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestSyncConfTask) OnSyncStatusComplete

func (self *GuestSyncConfTask) OnSyncStatusComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)

type GuestSyncstatusTask

type GuestSyncstatusTask struct {
	SGuestBaseTask
}

func (*GuestSyncstatusTask) OnGetStatusFail

func (self *GuestSyncstatusTask) OnGetStatusFail(ctx context.Context, guest *models.SGuest, err error)

func (*GuestSyncstatusTask) OnGetStatusSucc

func (self *GuestSyncstatusTask) OnGetStatusSucc(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)

func (*GuestSyncstatusTask) OnInit

type GuestUndeployTask

type GuestUndeployTask struct {
	SGuestBaseTask
}

func (*GuestUndeployTask) OnGuestUndeployComplete

func (self *GuestUndeployTask) OnGuestUndeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*GuestUndeployTask) OnInit

func (*GuestUndeployTask) OnStartDeleteGuestFail

func (self *GuestUndeployTask) OnStartDeleteGuestFail(ctx context.Context, err error)

type IScheduleModel

type IScheduleModel interface {
	db.IStandaloneModel

	SetStatus(userCred mcclient.TokenCredential, status string, reason string) error
}

type IScheduleTask

type IScheduleTask interface {
	GetUserCred() mcclient.TokenCredential
	GetParams() *jsonutils.JSONDict
	GetPendingUsage(quota quotas.IQuota) error

	SetStage(stageName string, data *jsonutils.JSONDict)
	SetStageFailed(ctx context.Context, reason string)
	OnScheduleFailCallback(obj IScheduleModel)
	OnScheduleComplete(ctx context.Context, items []db.IStandaloneModel, data *jsonutils.JSONDict)
	SaveScheduleResult(ctx context.Context, obj IScheduleModel, hostId string)
}

type KVMGuestCreateDiskTask

type KVMGuestCreateDiskTask struct {
	SGuestBaseTask
}

func (*KVMGuestCreateDiskTask) OnConfigSyncComplete

func (self *KVMGuestCreateDiskTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*KVMGuestCreateDiskTask) OnInit

func (*KVMGuestCreateDiskTask) OnKvmDiskPrepared

func (self *KVMGuestCreateDiskTask) OnKvmDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type KVMGuestRebuildRootTask

type KVMGuestRebuildRootTask struct {
	SGuestBaseTask
}

func (*KVMGuestRebuildRootTask) OnGuestDeployComplete

func (self *KVMGuestRebuildRootTask) OnGuestDeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*KVMGuestRebuildRootTask) OnInit

func (*KVMGuestRebuildRootTask) OnRebuildRootDiskComplete

func (self *KVMGuestRebuildRootTask) OnRebuildRootDiskComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*KVMGuestRebuildRootTask) OnRebuildRootDiskCompleteFailed

func (self *KVMGuestRebuildRootTask) OnRebuildRootDiskCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type ManagedGuestCreateDiskTask

type ManagedGuestCreateDiskTask struct {
	SGuestBaseTask
}

func (*ManagedGuestCreateDiskTask) AttachManagedDisks

func (self *ManagedGuestCreateDiskTask) AttachManagedDisks(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*ManagedGuestCreateDiskTask) OnConfigSyncComplete

func (self *ManagedGuestCreateDiskTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*ManagedGuestCreateDiskTask) OnInit

func (*ManagedGuestCreateDiskTask) OnManagedDiskPrepared

func (self *ManagedGuestCreateDiskTask) OnManagedDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

type ManagedGuestRebuildRootTask

type ManagedGuestRebuildRootTask struct {
	SGuestBaseTask
}

func (*ManagedGuestRebuildRootTask) OnGuestDeployComplete

func (self *ManagedGuestRebuildRootTask) OnGuestDeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*ManagedGuestRebuildRootTask) OnHostCacheImageComplete

func (self *ManagedGuestRebuildRootTask) OnHostCacheImageComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*ManagedGuestRebuildRootTask) OnHostCacheImageCompleteFailed

func (self *ManagedGuestRebuildRootTask) OnHostCacheImageCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*ManagedGuestRebuildRootTask) OnInit

type NetworkCreateTask

type NetworkCreateTask struct {
	taskman.STask
}

func (*NetworkCreateTask) OnInit

type NetworkDeleteTask

type NetworkDeleteTask struct {
	taskman.STask
}

func (*NetworkDeleteTask) OnInit

type SBaremetalBaseTask

type SBaremetalBaseTask struct {
	taskman.STask
}

func (*SBaremetalBaseTask) Action

func (self *SBaremetalBaseTask) Action() string

func (*SBaremetalBaseTask) GetBaremetal

func (self *SBaremetalBaseTask) GetBaremetal() *models.SHost

type SDiskBaseTask

type SDiskBaseTask struct {
	taskman.STask
}

func (*SDiskBaseTask) CleanHostSchedCache

func (self *SDiskBaseTask) CleanHostSchedCache(disk *models.SDisk)

func (*SDiskBaseTask) SetStageFailed

func (self *SDiskBaseTask) SetStageFailed(ctx context.Context, reason string)

type SGuestBaseTask

type SGuestBaseTask struct {
	taskman.STask
}

func (*SGuestBaseTask) SetStageFailed

func (self *SGuestBaseTask) SetStageFailed(ctx context.Context, reason string)

type SnapshotDeleteTask

type SnapshotDeleteTask struct {
	taskman.STask
}

func (*SnapshotDeleteTask) DeleteStaticSnapshot

func (self *SnapshotDeleteTask) DeleteStaticSnapshot(ctx context.Context, snapshot *models.SSnapshot)

func (*SnapshotDeleteTask) OnDeleteSnapshot

func (self *SnapshotDeleteTask) OnDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)

func (*SnapshotDeleteTask) OnDeleteSnapshotFailed

func (self *SnapshotDeleteTask) OnDeleteSnapshotFailed(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)

func (*SnapshotDeleteTask) OnInit

func (*SnapshotDeleteTask) OnReloadDiskSnapshot

func (self *SnapshotDeleteTask) OnReloadDiskSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)

func (*SnapshotDeleteTask) StartDeleteSnapshot

func (self *SnapshotDeleteTask) StartDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, guest *models.SGuest)

func (*SnapshotDeleteTask) StartReloadDisk

func (self *SnapshotDeleteTask) StartReloadDisk(ctx context.Context, snapshot *models.SSnapshot, guest *models.SGuest)

func (*SnapshotDeleteTask) TaskComplete

func (self *SnapshotDeleteTask) TaskComplete(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)

func (*SnapshotDeleteTask) TaskFailed

func (self *SnapshotDeleteTask) TaskFailed(ctx context.Context, snapshot *models.SSnapshot, reason string)

type StorageCacheImageTask

type StorageCacheImageTask struct {
	taskman.STask
}

func (*StorageCacheImageTask) OnCacheFailed

func (self *StorageCacheImageTask) OnCacheFailed(ctx context.Context, cache *models.SStoragecache, imageId string, scimg *models.SStoragecachedimage, err error)

func (*StorageCacheImageTask) OnCacheSucc

func (self *StorageCacheImageTask) OnCacheSucc(ctx context.Context, cache *models.SStoragecache, imageId string, scimg *models.SStoragecachedimage)

func (*StorageCacheImageTask) OnImageCacheComplete

func (self *StorageCacheImageTask) OnImageCacheComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*StorageCacheImageTask) OnImageCacheCompleteFailed

func (self *StorageCacheImageTask) OnImageCacheCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)

func (*StorageCacheImageTask) OnInit

type StorageUncacheImageTask

type StorageUncacheImageTask struct {
	taskman.STask
}

func (*StorageUncacheImageTask) OnInit

type VpcCreateTask

type VpcCreateTask struct {
	taskman.STask
}

func (*VpcCreateTask) OnInit

func (self *VpcCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)

func (*VpcCreateTask) TaskFailed

func (self *VpcCreateTask) TaskFailed(ctx context.Context, vpc *models.SVpc, err error)

type VpcDeleteTask

type VpcDeleteTask struct {
	taskman.STask
}

func (*VpcDeleteTask) OnInit

func (self *VpcDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)

Jump to

Keyboard shortcuts

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