workflow

package
v1.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CondTypeWorkflowFinish is the type of the Condition indicating workflow progress
	CondTypeWorkflowFinish = "workflow-progress"

	// CondReasonSucceeded is the reason of the workflow progress condition which is succeeded
	CondReasonSucceeded = "Succeeded"
	// CondReasonStopped is the reason of the workflow progress condition which is stopped
	CondReasonStopped = "Stopped"
	// CondReasonFailed is the reason of the workflow progress condition which is failed
	CondReasonFailed = "Failed"

	// CondStatusTrue is the status of the workflow progress condition which is True
	CondStatusTrue = "True"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SucceededMessage

type SucceededMessage struct {
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

SucceededMessage is the data json-marshalled into the message of `workflow-progress` condition when its reason is `succeeded`.

type Workflow

type Workflow interface {
	// ExecuteSteps executes the steps of an Application with given steps of rendered resources.
	// It returns done=true only if all steps are executed and succeeded.
	ExecuteSteps(ctx context.Context, appRevName string, steps []*unstructured.Unstructured) (done bool, err error)
}

Workflow is used to execute the workflow steps of Application.

func NewWorkflow

func NewWorkflow(app *oamcore.Application, applicator apply.Applicator) Workflow

NewWorkflow returns a Workflow implementation.

Jump to

Keyboard shortcuts

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