Documentation
¶
Index ¶
- func AssertParameters(job *model.Job, params []string) error
- func DAddActivity(activities ...string) func(*model.Job) error
- func DRemActivity(activities ...string) func(*model.Job) error
- func DeploymentDeleted(job *model.Job) (bool, error)
- func DeploymentDeletedByID(id string) (bool, error)
- func GetAuthInfo(job *model.Job) *core.AuthInfo
- func OnlyCreateSnapshotPerUser(job *model.Job) (bool, error)
- func UpdatingOwner(job *model.Job) (bool, error)
- func VmAddActivity(activities ...string) func(*model.Job) error
- func VmDeleted(job *model.Job) (bool, error)
- func VmDeletedByID(id string) (bool, error)
- func VmRemActivity(activities ...string) func(*model.Job) error
- func WaitForJob(context context.Context, job *model.Job, statuses []string) error
- func WaitForJobs(context context.Context, jobs []model.Job, statuses []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertParameters ¶
AssertParameters asserts that the job has all the required parameters.
func DAddActivity ¶
DAddActivity is a helper function that adds activity to deployment
func DRemActivity ¶
DRemActivity is a helper function that removes activity from deployment
func DeploymentDeleted ¶
DeploymentDeleted is a helper function that returns true if the deployment is deleted.
func DeploymentDeletedByID ¶
DeploymentDeletedByID returns true if the deployment is deleted.
func GetAuthInfo ¶
GetAuthInfo returns the auth info from the job. AuthInfo is not always available in the job, so it might be nil.
func OnlyCreateSnapshotPerUser ¶
OnlyCreateSnapshotPerUser is a helper function that returns true if there is a snapshot job for the user.
func UpdatingOwner ¶
UpdatingOwner is a helper function that returns true if there is an updating owner job for the VM.
func VmAddActivity ¶
VmAddActivity is a helper function that adds activity to VM
func VmDeletedByID ¶
VmDeletedByID returns true if the VM is deleted.
func VmRemActivity ¶
VmRemActivity is a helper function that removes activity from VM
func WaitForJob ¶
WaitForJob waits for a job to reach one of the given statuses.
Types ¶
This section is empty.