Documentation ¶
Index ¶
- Constants
- type BaremetalConvertHypervisorTask
- type CloudProviderSyncInfoTask
- type DiskDeleteTask
- type GuestBatchCreateTask
- 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) 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) OnGuestDeleteFailed(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) OnGuestDetachDisksCompleteFailed(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) 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) OnDeployGuestSucc(guest *models.SGuest)
- 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
- type GuestInsertIsoTask
- 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 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 NetworkCreateTask
- type NetworkDeleteTask
- type SDiskBaseTask
- type SGuestBaseTask
- 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 ¶
View Source
const (
CONVERT_TASK = "convert_task"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaremetalConvertHypervisorTask ¶
func (*BaremetalConvertHypervisorTask) OnInit ¶
func (self *BaremetalConvertHypervisorTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
type CloudProviderSyncInfoTask ¶
func (*CloudProviderSyncInfoTask) OnInit ¶
func (self *CloudProviderSyncInfoTask) OnInit(ctx context.Context, obj db.IStandaloneModel, body jsonutils.JSONObject)
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 ¶
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 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) OnGuestDeleteFailed ¶
func (self *GuestDeleteTask) OnGuestDeleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
func (*GuestDeleteTask) OnGuestDetachDisksComplete ¶
func (self *GuestDeleteTask) OnGuestDetachDisksComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestDeleteTask) OnGuestDetachDisksCompleteFailed ¶
func (self *GuestDeleteTask) OnGuestDetachDisksCompleteFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestDeleteTask) OnGuestStopComplete ¶
func (self *GuestDeleteTask) OnGuestStopComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestDeleteTask) OnGuestStopCompleteFailed ¶
func (self *GuestDeleteTask) OnGuestStopCompleteFailed(ctx context.Context, obj db.IStandaloneModel, err jsonutils.JSONObject)
func (*GuestDeleteTask) OnInit ¶
func (self *GuestDeleteTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestDeleteTask) OnPendingDeleteComplete ¶
func (self *GuestDeleteTask) OnPendingDeleteComplete(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
func (*GuestDeleteTask) 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) 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 ¶
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) OnInit ¶
func (self *GuestDetachDiskTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject)
type GuestInsertIsoTask ¶
type GuestInsertIsoTask struct {
SGuestBaseTask
}
func (*GuestInsertIsoTask) OnInit ¶
func (self *GuestInsertIsoTask) 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 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 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 SDiskBaseTask ¶
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 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, 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 ¶
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_convert_hypervisor_task.go
- cloud_provider_sync_info_task.go
- disk_base_task.go
- disk_delete_task.go
- doc.go
- guest_base_task.go
- guest_batch_create_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_insert_iso_task.go
- guest_start_task.go
- guest_stop_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.