Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PurgeDeployment ¶
func PurgeDeployment(ctx context.Context, deploymentID, filepathWorkingDirectory string, force, continueOnError bool, ignoreTasks ...string) error
PurgeDeployment allows to completely remove references of a deployment within yorc
The deployment should be in UDEPLOYED status to be purged except if force parameter is set to true. In this case the deployment status is not even checked.
If continueOnError is set to true, purge do not stop on errors and try to delete the maximum of elements while normal purge stops on the first error. The error returned by this function may be multi-evaluated use the standard errors.Unwrap method to access individual errors. In any case if the purge process encounter an error the deployment status is set to PURGE_FAILED
ignoreTasks allows to prevent removing a given list of tasks this is particularly useful when calling it within a task. This option will probably be transitory for Yorc 4.x before switching to a full synchronous purge model
Types ¶
This section is empty.