status

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
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

func CheckStatus(ctx context.Context, mc model.ClientSet, run *model.ResourceRun) (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL