tasks

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

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 CloudProviderSyncInfoTask

type CloudProviderSyncInfoTask struct {
	taskman.STask
}

func (*CloudProviderSyncInfoTask) OnInit

type DiskDeleteTask

type DiskDeleteTask struct {
	SDiskBaseTask
}

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 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 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) 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, data 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) OnDeployGuestSucc

func (self *GuestDeployTask) OnDeployGuestSucc(guest *models.SGuest)

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

type GuestInsertIsoTask

type GuestInsertIsoTask struct {
	SGuestBaseTask
}

func (*GuestInsertIsoTask) 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 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 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) 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 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, extImgId string)

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