src

package
v0.0.0-...-d2787d5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateTypeTask     = "Task"
	StateTypePass     = "Pass"
	StateTypeFail     = "Fail"
	StateTypeSucceed  = "Succeed"
	StateTypeChoice   = "Choice"
	StateTypeWait     = "Wait"
	StateTypeParallel = "Parallel"
	StateTypeMap      = "Map"
)

Variables

This section is empty.

Functions

func ValidateSchema

func ValidateSchema(payload []byte) error

Types

type Catch

type Catch struct {
	ErrorEquals []string `json:"ErrorEquals"`
	ResultPath  string   `json:"ResultPath"`
	Next        string   `json:"Next"`
}

type Retry

type Retry struct {
	ErrorEquals     []string `json:"ErrorEquals"`
	IntervalSeconds int      `json:"IntervalSeconds"`
	MaxAttempts     int      `json:"MaxAttempts"`
	BackoffRate     float64  `json:"BackoffRate"`
}

type State

type State struct {
	Type           string            `json:"Type"`
	Comment        string            `json:"Comment"`
	Resource       string            `json:"Resource"`
	InputPath      string            `json:"InputPath"`
	OutputPath     string            `json:"OutputPath"`
	ResultPath     string            `json:"ResultPath"`
	Next           string            `json:"Next"`
	End            bool              `json:"End"`
	ResultSelector map[string]string `json:"ResultSelector"`
	Parameters     map[string]string `json:"Parameters"`
	Retry          []Retry           `json:"Retry"`
	Catch          []Catch           `json:"Catch"`
}

State represents a state in the ASL

type StateMachine

type StateMachine struct {
	Comment string           `json:"Comment"`
	StartAt string           `json:"StartAt"`
	Version string           `json:"Version"`
	States  map[string]State `json:"States"`
}

Jump to

Keyboard shortcuts

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