tasks

package
v2.2.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CONVERT_TASK = "convert_task"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaremetalConvertHypervisorTask

type BaremetalConvertHypervisorTask struct {
	taskman.STask
}

func (*BaremetalConvertHypervisorTask) OnInit

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 CloudProviderSyncInfoTask

type CloudProviderSyncInfoTask struct {
	taskman.STask
}

func (*CloudProviderSyncInfoTask) OnInit

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)

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, resion 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, resion 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 GuestBatchCreateTask

type GuestBatchCreateTask struct {
	taskman.STask
}

func (*GuestBatchCreateTask) OnGuestScheduleComplete

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

func (*GuestBatchCreateTask) OnInit

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