Documentation ¶
Index ¶
- Constants
- func CheckDependantStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (bool, error)
- func CheckDependencyStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (bool, error)
- func CheckStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (bool, error)
- func IsPreviewPlanFailed(run *model.ResourceRun) bool
- func IsStatusApplying(run *model.ResourceRun) bool
- func IsStatusCanceled(run *model.ResourceRun) bool
- func IsStatusFailed(run *model.ResourceRun) bool
- func IsStatusPending(run *model.ResourceRun) bool
- func IsStatusPlanCondition(run *model.ResourceRun) bool
- func IsStatusPlanned(run *model.ResourceRun) bool
- func IsStatusRunning(run *model.ResourceRun) bool
- func IsStatusSucceeded(run *model.ResourceRun) bool
- func SetStatusFalse(run *model.ResourceRun, errMsg string)
- func SetStatusTrue(run *model.ResourceRun, msg string)
- func UpdateStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (*model.ResourceRun, error)
- func UpdateStatusWithErr(ctx context.Context, mc model.ClientSet, run *model.ResourceRun, err error) (*model.ResourceRun, error)
Constants ¶
const ( ActionDelete = "delete" ActionStop = "stop" )
Variables ¶
This section is empty.
Functions ¶
func CheckDependantStatus ¶
func CheckDependantStatus( ctx context.Context, mc model.ClientSet, run *model.ResourceRun, ) (bool, error)
CheckDependantStatus checks the resource dependant status of the resource run. Works for both stop and delete actions.
func CheckDependencyStatus ¶
func CheckDependencyStatus( ctx context.Context, mc model.ClientSet, run *model.ResourceRun, ) (bool, error)
CheckDependencyStatus checks the resource dependency status of the resource run. Works for create, update, rollback and start actions.
func CheckStatus ¶
CheckStatus checks the status of the resource run dependant or dependency with the given resource run.
func IsPreviewPlanFailed ¶
func IsPreviewPlanFailed(run *model.ResourceRun) bool
func IsStatusApplying ¶
func IsStatusApplying(run *model.ResourceRun) bool
IsStatusApplying checks if the resource run is in the applying status.
func IsStatusCanceled ¶
func IsStatusCanceled(run *model.ResourceRun) bool
func IsStatusFailed ¶
func IsStatusFailed(run *model.ResourceRun) bool
func IsStatusPending ¶
func IsStatusPending(run *model.ResourceRun) bool
func IsStatusPlanCondition ¶
func IsStatusPlanCondition(run *model.ResourceRun) bool
IsStatusPlanCondition checks if the resource run is in the plan condition.
func IsStatusPlanned ¶
func IsStatusPlanned(run *model.ResourceRun) bool
func IsStatusRunning ¶
func IsStatusRunning(run *model.ResourceRun) bool
IsStatusRunning checks if the resource run is in the running status.
func IsStatusSucceeded ¶
func IsStatusSucceeded(run *model.ResourceRun) bool
func SetStatusFalse ¶
func SetStatusFalse(run *model.ResourceRun, errMsg string)
SetStatusFalse sets the status of the resource run to false.
func SetStatusTrue ¶
func SetStatusTrue(run *model.ResourceRun, msg string)
SetStatusTrue sets the status of the resource run to true. It marks the status of the resource run as "Succeeded".
func UpdateStatus ¶
func UpdateStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (*model.ResourceRun, error)
UpdateStatus updates the status of the resource run.
func UpdateStatusWithErr ¶
func UpdateStatusWithErr(ctx context.Context, mc model.ClientSet, run *model.ResourceRun, err error) (*model.ResourceRun, error)
UpdateStatusWithErr updates the status of the resource run with the given error.
Types ¶
This section is empty.