Documentation ¶
Index ¶
- type BaremetalConvertHypervisorTask
- func (self *BaremetalConvertHypervisorTask) OnFailedSyncstatusComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalConvertHypervisorTask) OnGuestDeleteComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalConvertHypervisorTask) OnGuestDeployComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalConvertHypervisorTask) OnGuestDeployCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalConvertHypervisorTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- type BaremetalDeleteTask
- func (self *BaremetalDeleteTask) OnDeleteBaremetalComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalDeleteTask) OnDeleteBaremetalCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalDeleteTask) OnFailure(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- type BaremetalMaintenanceTask
- func (self *BaremetalMaintenanceTask) OnEnterMaintenantModeSucc(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalMaintenanceTask) OnEnterMaintenantModeSuccFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalMaintenanceTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- type BaremetalPrepareTask
- func (self *BaremetalPrepareTask) OnFailure(ctx context.Context, baremetal *models.SHost, reason string)
- func (self *BaremetalPrepareTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *BaremetalPrepareTask) OnSyncConfigComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalPrepareTask) OnSyncConfigCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- type BaremetalServerResetTask
- type BaremetalServerStartTask
- func (self *BaremetalServerStartTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *BaremetalServerStartTask) OnStartComplete(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)
- func (self *BaremetalServerStartTask) OnStartCompleteFailed(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)
- type BaremetalServerStopTask
- func (self *BaremetalServerStopTask) OnGuestStopTaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *BaremetalServerStopTask) OnGuestStopTaskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *BaremetalServerStopTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *BaremetalServerStopTask) OnStopGuestFail(ctx context.Context, guest *models.SGuest, reason string)
- type BaremetalServerSyncStatusTask
- func (self *BaremetalServerSyncStatusTask) OnGetStatusFail(ctx context.Context, guest *models.SGuest)
- func (self *BaremetalServerSyncStatusTask) OnGuestStatusTaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *BaremetalServerSyncStatusTask) OnGuestStatusTaskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *BaremetalServerSyncStatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type BaremetalSyncAllGuestsStatusTask
- type BaremetalSyncStatusTask
- type BaremetalUnconvertHypervisorTask
- func (self *BaremetalUnconvertHypervisorTask) OnFailSyncstatusComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalUnconvertHypervisorTask) OnGuestDeleteComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalUnconvertHypervisorTask) OnGuestDeleteCompleteFailed(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- func (self *BaremetalUnconvertHypervisorTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *BaremetalUnconvertHypervisorTask) OnPrepareComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
- type BaremetalUnmaintenanceTask
- type BatchSnapshotsDeleteTask
- func (self *BatchSnapshotsDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *BatchSnapshotsDeleteTask) OnStorageDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
- func (self *BatchSnapshotsDeleteTask) StartStorageDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot)
- type CloudAccountImportTask
- type CloudAccountSyncInfoTask
- func (self *CloudAccountSyncInfoTask) OnCloudaccountSyncComplete(ctx context.Context, items []db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *CloudAccountSyncInfoTask) OnInit(ctx context.Context, objs []db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *CloudAccountSyncInfoTask) SyncCloudaccount(ctx context.Context, account *models.SCloudaccount, ...)
- func (self *CloudAccountSyncInfoTask) SyncCloudprovider(ctx context.Context, cloudprovider *models.SCloudprovider, ...)
- type CloudProviderSyncInfoTask
- type DiskCleanUpSnapshotsTask
- func (self *DiskCleanUpSnapshotsTask) OnCleanUpSnapshots(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskCleanUpSnapshotsTask) OnCleanUpSnapshotsFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskCleanUpSnapshotsTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskCleanUpSnapshotsTask) StartCleanUpSnapshots(ctx context.Context, disk *models.SDisk)
- type DiskCreateTask
- func (self *DiskCreateTask) OnDiskReady(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskCreateTask) OnDiskReadyFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskCreateTask) OnStartAllocateFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskCreateTask) OnStorageCacheImageComplete(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- type DiskDeleteTask
- func (self *DiskDeleteTask) OnGuestDiskDeleteFailed(ctx context.Context, disk *models.SDisk, resion error)
- func (self *DiskDeleteTask) OnGuestDiskDeleteSucc(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type DiskResetTask
- func (self *DiskResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskResetTask) OnRequestResetDisk(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskResetTask) OnStartGuest(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskResetTask) RequestResetDisk(ctx context.Context, disk *models.SDisk, host *models.SHost)
- func (self *DiskResetTask) TaskCompleted(ctx context.Context, disk *models.SDisk, data *jsonutils.JSONDict)
- func (self *DiskResetTask) TaskFailed(ctx context.Context, disk *models.SDisk, reason string)
- type DiskResizeTask
- func (self *DiskResizeTask) OnDiskResizeComplete(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskResizeTask) OnDiskResizeCompleteFailed(ctx context.Context, disk *models.SDisk, reason error)
- func (self *DiskResizeTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskResizeTask) OnStartResizeDiskFailed(ctx context.Context, disk *models.SDisk, reason error)
- func (self *DiskResizeTask) OnStartResizeDiskSucc(ctx context.Context, disk *models.SDisk)
- func (self *DiskResizeTask) StartResizeDisk(ctx context.Context, host *models.SHost, storage *models.SStorage, ...)
- type DiskSaveTask
- func (self *DiskSaveTask) GetMasterHost(disk *models.SDisk) *models.SHost
- func (self *DiskSaveTask) OnDiskBackupComplete(ctx context.Context, disk *models.SDisk, data *jsonutils.JSONDict)
- func (self *DiskSaveTask) OnDiskBackupCompleteFailed(ctx context.Context, disk *models.SDisk, data jsonutils.JSONObject)
- func (self *DiskSaveTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *DiskSaveTask) RefreshImageCache(ctx context.Context, imageId string)
- func (self *DiskSaveTask) StartBackupDisk(ctx context.Context, disk *models.SDisk, host *models.SHost)
- func (self *DiskSaveTask) TaskFailed(ctx context.Context, resion string)
- func (self *DiskSaveTask) UploadDisk(ctx context.Context, host *models.SHost, disk *models.SDisk, imageId string, ...) error
- type EipAllocateTask
- type EipAssociateTask
- type EipChangeBandwidthTask
- type EipDeallocateTask
- type EipDissociateTask
- type EipSyncstatusTask
- type GuestBatchCreateTask
- type GuestChangeConfigTask
- func (self *GuestChangeConfigTask) DoCreateDisksTask(ctx context.Context, guest *models.SGuest)
- func (self *GuestChangeConfigTask) OnCreateDisksComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestChangeConfigTask) OnCreateDisksCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestChangeConfigTask) OnDisksResizeComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestChangeConfigTask) OnGuestStartComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestChangeConfigTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestChangeConfigTask) OnSyncStatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type GuestCreateDiskTask
- func (self *GuestCreateDiskTask) OnDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateDiskTask) OnDiskPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type GuestCreateTask
- func (self *GuestCreateTask) OnAutoStartGuest(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnCdromPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnCdromPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnDeployGuestDescComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnDeployGuestDescCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnDiskPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnGuestNetworkReady(ctx context.Context, guest *models.SGuest)
- func (self *GuestCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *GuestCreateTask) OnSyncStatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) OnWaitGuestNetworksReady(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestCreateTask) StartDeployGuest(ctx context.Context, guest *models.SGuest)
- type GuestDeleteTask
- func (self *GuestDeleteTask) DeleteGuest(ctx context.Context, guest *models.SGuest)
- func (self *GuestDeleteTask) DoDeleteGuest(ctx context.Context, guest *models.SGuest)
- func (self *GuestDeleteTask) NotifyServerDeleted(ctx context.Context, guest *models.SGuest)
- func (self *GuestDeleteTask) OnEipDissociateComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnEipDissociateCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnGuestDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnGuestDeleteCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnGuestDetachDisksComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnGuestStopComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnGuestStopCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnPendingDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnSyncGuestConfComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeleteTask) OnSyncGuestConfCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestDeleteTask) StartDeleteGuest(ctx context.Context, guest *models.SGuest)
- func (self *GuestDeleteTask) StartPendingDeleteGuest(ctx context.Context, guest *models.SGuest)
- type GuestDeployTask
- func (self *GuestDeployTask) OnDeployGuestComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) OnDeployGuestCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) OnDeployGuestFail(ctx context.Context, guest *models.SGuest, err error)
- func (self *GuestDeployTask) OnDeployGuestSyncstatusComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) OnDeployStartGuestComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) OnDeployWaitServerStop(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) OnGuestNetworkReady(ctx context.Context, guest *models.SGuest)
- func (self *GuestDeployTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDeployTask) StartDeployGuestOnHost(ctx context.Context, guest *models.SGuest, host *models.SHost)
- type GuestDetachAllDisksTask
- type GuestDetachDiskTask
- func (self *GuestDetachDiskTask) OnDiskDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDetachDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDetachDiskTask) OnSyncConfigComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestDetachDiskTask) OnSyncConfigCompleteFailed(ctx context.Context, obj db.IStandaloneModel, resion jsonutils.JSONObject)
- func (self *GuestDetachDiskTask) OnTaskFail(ctx context.Context, guest *models.SGuest, disk *models.SDisk, err error)
- type GuestDiskSnapshotTask
- func (self *GuestDiskSnapshotTask) DoDiskSnapshot(ctx context.Context, guest *models.SGuest)
- func (self *GuestDiskSnapshotTask) OnAutoDeleteSnapshot(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) OnAutoDeleteSnapshotFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) OnDiskSnapshotComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) OnDiskSnapshotCompleteFailed(ctx context.Context, guest *models.SGuest, err jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) OnSyncStatus(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) TaskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestDiskSnapshotTask) TaskFailed(ctx context.Context, guest *models.SGuest, reason string)
- type GuestHardResetTask
- func (self *GuestHardResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestHardResetTask) OnServerStartComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestHardResetTask) OnServerStopComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestHardResetTask) StartServer(ctx context.Context, guest *models.SGuest)
- func (self *GuestHardResetTask) StopServer(ctx context.Context, guest *models.SGuest)
- type GuestInsertIsoTask
- func (self *GuestInsertIsoTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestInsertIsoTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestInsertIsoTask) OnIsoPrepareComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestInsertIsoTask) OnIsoPrepareCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type GuestLiveMigrateTask
- func (self *GuestLiveMigrateTask) OnLiveMigrateComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnLiveMigrateCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnResumeDestGuestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnResumeDestGuestCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnStartDestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnStartDestCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnStartGeustComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestLiveMigrateTask) OnUndeploySrcGuestComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- type GuestMigrateTask
- func (self *GuestMigrateTask) FindCandidataTarget(ctx context.Context, guest *models.SGuest)
- func (self *GuestMigrateTask) OnCachedImageComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnMigrateConfAndDiskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnMigrateConfAndDiskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnNormalMigrateComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnScheduleComplete(ctx context.Context, guest *models.SGuest, results []jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnSrcPrepareComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnSrcPrepareCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) OnUndeployOldHostSucc(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestMigrateTask) TaskFailed(ctx context.Context, guest *models.SGuest, reason string)
- type GuestRebuildRootTask
- func (self *GuestRebuildRootTask) OnGuestStartComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) OnRebuildRootDiskComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) OnRebuildRootDiskCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) OnStopServerComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) OnSyncStatusComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestRebuildRootTask) StartRebuildRootDisk(ctx context.Context, guest *models.SGuest)
- type GuestRestartTask
- type GuestSaveImageTask
- func (self *GuestSaveImageTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
- func (self *GuestSaveImageTask) OnSaveRootImageComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestSaveImageTask) OnSaveRootImageCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestSaveImageTask) OnStartServerCompleteFailed(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestSaveImageTask) OnStopServerComplete(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)
- type GuestSoftResetTask
- type GuestStartTask
- func (self *GuestStartTask) OnGuestSyncstatusAfterStart(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestStartTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestStartTask) OnStartComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestStartTask) OnStartCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestStartTask) OnStartTemplateReady(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type GuestStopTask
- func (self *GuestStopTask) OnGuestStopTaskComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestStopTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestStopTask) OnStopGuestFail(ctx context.Context, guest *models.SGuest, err error)
- type GuestSuspendTask
- func (self *GuestSuspendTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSuspendTask) OnSuspendComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSuspendTask) OnSuspendCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
- func (self *GuestSuspendTask) OnSuspendGuestFail(guest *models.SGuest, reason string)
- type GuestSyncConfTask
- func (self *GuestSyncConfTask) OnDiskSyncComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- func (self *GuestSyncConfTask) OnDiskSyncCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSyncConfTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSyncConfTask) OnSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSyncConfTask) OnSyncCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestSyncConfTask) OnSyncStatusComplete(ctx context.Context, guest *models.SGuest, data jsonutils.JSONObject)
- type GuestSyncstatusTask
- func (self *GuestSyncstatusTask) OnGetStatusFail(ctx context.Context, guest *models.SGuest, err error)
- func (self *GuestSyncstatusTask) OnGetStatusSucc(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)
- func (self *GuestSyncstatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type GuestUndeployTask
- func (self *GuestUndeployTask) OnGuestUndeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestUndeployTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *GuestUndeployTask) OnStartDeleteGuestFail(ctx context.Context, err error)
- type KVMGuestCreateDiskTask
- func (self *KVMGuestCreateDiskTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *KVMGuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *KVMGuestCreateDiskTask) OnKvmDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type KVMGuestRebuildRootTask
- func (self *KVMGuestRebuildRootTask) OnGuestDeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *KVMGuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *KVMGuestRebuildRootTask) OnRebuildRootDiskComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *KVMGuestRebuildRootTask) OnRebuildRootDiskCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type ManagedGuestCreateDiskTask
- func (self *ManagedGuestCreateDiskTask) AttachManagedDisks(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestCreateDiskTask) OnConfigSyncComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestCreateDiskTask) OnManagedDiskPrepared(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type ManagedGuestRebuildRootTask
- func (self *ManagedGuestRebuildRootTask) OnGuestDeployComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestRebuildRootTask) OnHostCacheImageComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestRebuildRootTask) OnHostCacheImageCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *ManagedGuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type NetworkCreateTask
- type NetworkDeleteTask
- type SBaremetalBaseTask
- type SDiskBaseTask
- type SGuestBaseTask
- type SnapshotDeleteTask
- func (self *SnapshotDeleteTask) DeleteStaticSnapshot(ctx context.Context, snapshot *models.SSnapshot)
- func (self *SnapshotDeleteTask) OnDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
- func (self *SnapshotDeleteTask) OnDeleteSnapshotFailed(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
- func (self *SnapshotDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *SnapshotDeleteTask) OnReloadDiskSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
- func (self *SnapshotDeleteTask) StartDeleteSnapshot(ctx context.Context, snapshot *models.SSnapshot, guest *models.SGuest)
- func (self *SnapshotDeleteTask) StartReloadDisk(ctx context.Context, snapshot *models.SSnapshot, guest *models.SGuest)
- func (self *SnapshotDeleteTask) TaskComplete(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
- func (self *SnapshotDeleteTask) TaskFailed(ctx context.Context, snapshot *models.SSnapshot, reason string)
- type StorageCacheImageTask
- func (self *StorageCacheImageTask) OnCacheFailed(ctx context.Context, cache *models.SStoragecache, imageId string, ...)
- func (self *StorageCacheImageTask) OnCacheSucc(ctx context.Context, cache *models.SStoragecache, imageId string, ...)
- func (self *StorageCacheImageTask) OnImageCacheComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *StorageCacheImageTask) OnImageCacheCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- func (self *StorageCacheImageTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
- type StorageUncacheImageTask
- type VpcCreateTask
- type VpcDeleteTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaremetalConvertHypervisorTask ¶
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 ¶
func (self *BaremetalConvertHypervisorTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
func (self *BaremetalDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
func (self *BaremetalMaintenanceTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type BaremetalPrepareTask ¶
type BaremetalPrepareTask struct {
SBaremetalBaseTask
}
func (*BaremetalPrepareTask) OnInit ¶
func (self *BaremetalPrepareTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
func (self *BaremetalServerResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type BaremetalServerStartTask ¶
type BaremetalServerStartTask struct {
SGuestBaseTask
}
func (*BaremetalServerStartTask) OnInit ¶
func (self *BaremetalServerStartTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 (self *BaremetalServerStopTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
func (*BaremetalServerStopTask) OnStopGuestFail ¶
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 ¶
func (self *BaremetalServerSyncStatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
func (self *BaremetalSyncAllGuestsStatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type BaremetalSyncStatusTask ¶
type BaremetalSyncStatusTask struct {
SBaremetalBaseTask
}
func (*BaremetalSyncStatusTask) DoSyncStatus ¶
func (self *BaremetalSyncStatusTask) DoSyncStatus(ctx context.Context, baremetal *models.SHost)
func (*BaremetalSyncStatusTask) OnInit ¶
func (self *BaremetalSyncStatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 (self *BaremetalUnconvertHypervisorTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 (self *BaremetalUnmaintenanceTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
func (*BaremetalUnmaintenanceTask) OnUnmaintenantComplete ¶
func (self *BaremetalUnmaintenanceTask) OnUnmaintenantComplete(ctx context.Context, baremetal *models.SHost, body jsonutils.JSONObject)
type BatchSnapshotsDeleteTask ¶
func (*BatchSnapshotsDeleteTask) OnInit ¶
func (self *BatchSnapshotsDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
func (*CloudAccountImportTask) OnInit ¶
func (self *CloudAccountImportTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
func (*CloudAccountImportTask) SyncNewCloudProviderComplete ¶
func (self *CloudAccountImportTask) SyncNewCloudProviderComplete(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type CloudAccountSyncInfoTask ¶
func (*CloudAccountSyncInfoTask) OnCloudaccountSyncComplete ¶
func (self *CloudAccountSyncInfoTask) OnCloudaccountSyncComplete(ctx context.Context, items []db.IStandaloneModel, data jsonutils.JSONObject)
func (*CloudAccountSyncInfoTask) OnInit ¶
func (self *CloudAccountSyncInfoTask) OnInit(ctx context.Context, objs []db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
func (*CloudProviderSyncInfoTask) OnInit ¶
func (self *CloudProviderSyncInfoTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 (self *DiskCleanUpSnapshotsTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (*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 (*DiskResetTask) TaskCompleted ¶
func (*DiskResetTask) TaskFailed ¶
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 (*DiskResizeTask) OnInit ¶
func (self *DiskResizeTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*DiskResizeTask) OnStartResizeDiskFailed ¶
func (*DiskResizeTask) OnStartResizeDiskSucc ¶
func (self *DiskResizeTask) OnStartResizeDiskSucc(ctx context.Context, disk *models.SDisk)
type DiskSaveTask ¶
type DiskSaveTask struct {
SDiskBaseTask
}
func (*DiskSaveTask) GetMasterHost ¶
func (self *DiskSaveTask) GetMasterHost(disk *models.SDisk) *models.SHost
func (*DiskSaveTask) OnDiskBackupComplete ¶
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 (*DiskSaveTask) TaskFailed ¶
func (self *DiskSaveTask) TaskFailed(ctx context.Context, resion string)
type EipAllocateTask ¶
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 ¶
func (*EipAssociateTask) OnInit ¶
func (self *EipAssociateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*EipAssociateTask) TaskFail ¶
func (self *EipAssociateTask) TaskFail(ctx context.Context, eip *models.SElasticip, msg string, vm *models.SGuest)
type EipChangeBandwidthTask ¶
func (*EipChangeBandwidthTask) OnInit ¶
func (self *EipChangeBandwidthTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type EipDeallocateTask ¶
func (*EipDeallocateTask) OnInit ¶
func (self *EipDeallocateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type EipDissociateTask ¶
func (*EipDissociateTask) OnInit ¶
func (self *EipDissociateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*EipDissociateTask) TaskFail ¶
func (self *EipDissociateTask) TaskFail(ctx context.Context, eip *models.SElasticip, msg string, vm *models.SGuest)
type EipSyncstatusTask ¶
func (*EipSyncstatusTask) OnInit ¶
func (self *EipSyncstatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type GuestBatchCreateTask ¶
func (*GuestBatchCreateTask) OnGuestScheduleComplete ¶
func (self *GuestBatchCreateTask) OnGuestScheduleComplete(ctx context.Context, items []db.IStandaloneModel, data *jsonutils.JSONDict)
func (*GuestBatchCreateTask) OnInit ¶
func (self *GuestBatchCreateTask) OnInit(ctx context.Context, objs []db.IStandaloneModel, body jsonutils.JSONObject)
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 (self *GuestChangeConfigTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
func (self *GuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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) OnGuestDetachDisksComplete ¶
func (self *GuestDeleteTask) OnGuestDetachDisksComplete(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 (*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 ¶
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 ¶
func (self *GuestDetachAllDisksTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestDetachDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
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 (self *GuestDiskSnapshotTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
type GuestHardResetTask ¶
type GuestHardResetTask struct {
SGuestBaseTask
}
func (*GuestHardResetTask) OnInit ¶
func (self *GuestHardResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestInsertIsoTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestMigrateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
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 (self *GuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestSaveImageTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
func (self *GuestSoftResetTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
type GuestSuspendTask ¶
type GuestSuspendTask struct {
SGuestBaseTask
}
func (*GuestSuspendTask) OnInit ¶
func (self *GuestSuspendTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestSyncConfTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (*GuestSyncstatusTask) OnGetStatusSucc ¶
func (self *GuestSyncstatusTask) OnGetStatusSucc(ctx context.Context, guest *models.SGuest, body jsonutils.JSONObject)
func (*GuestSyncstatusTask) OnInit ¶
func (self *GuestSyncstatusTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *GuestUndeployTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestUndeployTask) OnStartDeleteGuestFail ¶
func (self *GuestUndeployTask) OnStartDeleteGuestFail(ctx context.Context, err error)
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 (self *KVMGuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *KVMGuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 (self *ManagedGuestCreateDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
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 ¶
func (self *ManagedGuestRebuildRootTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type NetworkCreateTask ¶
func (*NetworkCreateTask) OnInit ¶
func (self *NetworkCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type NetworkDeleteTask ¶
func (*NetworkDeleteTask) OnInit ¶
func (self *NetworkDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type SBaremetalBaseTask ¶
func (*SBaremetalBaseTask) Action ¶
func (self *SBaremetalBaseTask) Action() string
func (*SBaremetalBaseTask) GetBaremetal ¶
func (self *SBaremetalBaseTask) GetBaremetal() *models.SHost
type SDiskBaseTask ¶
func (*SDiskBaseTask) CleanHostSchedCache ¶
func (self *SDiskBaseTask) CleanHostSchedCache(disk *models.SDisk)
func (*SDiskBaseTask) SetStageFailed ¶
func (self *SDiskBaseTask) SetStageFailed(ctx context.Context, reason string)
type SGuestBaseTask ¶
func (*SGuestBaseTask) SetStageFailed ¶
func (self *SGuestBaseTask) SetStageFailed(ctx context.Context, reason string)
type SnapshotDeleteTask ¶
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 (self *SnapshotDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*SnapshotDeleteTask) OnReloadDiskSnapshot ¶
func (self *SnapshotDeleteTask) OnReloadDiskSnapshot(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
func (*SnapshotDeleteTask) StartDeleteSnapshot ¶
func (*SnapshotDeleteTask) StartReloadDisk ¶
func (*SnapshotDeleteTask) TaskComplete ¶
func (self *SnapshotDeleteTask) TaskComplete(ctx context.Context, snapshot *models.SSnapshot, data jsonutils.JSONObject)
func (*SnapshotDeleteTask) TaskFailed ¶
type StorageCacheImageTask ¶
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 ¶
func (self *StorageCacheImageTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type StorageUncacheImageTask ¶
func (*StorageUncacheImageTask) OnInit ¶
func (self *StorageUncacheImageTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type VpcCreateTask ¶
func (*VpcCreateTask) OnInit ¶
func (self *VpcCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
func (*VpcCreateTask) TaskFailed ¶
type VpcDeleteTask ¶
func (*VpcDeleteTask) OnInit ¶
func (self *VpcDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
Source Files ¶
- baremetal_base_task.go
- baremetal_convert_hypervisor_task.go
- baremetal_delete_task.go
- baremetal_maintenance_task.go
- baremetal_prepare_task.go
- baremetal_server_reset_task.go
- baremetal_server_start_task.go
- baremetal_server_stop_task.go
- baremetal_server_sync_status_task.go
- baremetal_sync_status_task.go
- baremetal_unconvert_hypervisor_task.go
- baremetal_unmaintenance_task.go
- cloud_account_import_task.go
- cloud_account_sync_task.go
- cloud_provider_sync_info_task.go
- disk_base_task.go
- disk_create_task.go
- disk_delete_task.go
- disk_reset_task.go
- disk_resize_task.go
- disk_save_task.go
- doc.go
- eip_allocate_task.go
- eip_associate_task.go
- eip_change_bandwidth_task.go
- eip_deallocate_task.go
- eip_dissociate_task.go
- eip_syncstatus_task.go
- guest_base_task.go
- guest_batch_create_task.go
- guest_change_config_task.go
- guest_create_disk_task.go
- guest_create_task.go
- guest_delete_task.go
- guest_deploy_task.go
- guest_detach_all_disks_task.go
- guest_detach_disk_task.go
- guest_disk_snapshot_task.go
- guest_insert_iso_task.go
- guest_live_migrate_task.go
- guest_rebuild_root_task.go
- guest_reset_task.go
- guest_save_image_task.go
- guest_start_task.go
- guest_stop_task.go
- guest_suspend_task.go
- guest_sync_task.go
- guest_syncstatus_task.go
- guest_undeploy_task.go
- network_create_task.go
- network_delete_task.go
- storage_cache_image_task.go
- storage_uncache_image_task.go
- vpc_create_task.go
- vpc_delete_task.go
Click to show internal directories.
Click to hide internal directories.