Documentation
¶
Index ¶
- Variables
- type ActionState
- type ActionStatus
- type Event
- type EventType
- type ExecutionState
- type Recorder
- func (r *Recorder) Attempt(id string) int32
- func (r *Recorder) BlockAction(ctx context.Context, id string, err error) error
- func (r *Recorder) Finish(ctx context.Context, err error) error
- func (r *Recorder) FinishAction(ctx context.Context, id string, outputs map[string]any, err error) error
- func (r *Recorder) Runnable(id string) bool
- func (r *Recorder) SkipPending(ctx context.Context, ids []string) error
- func (r *Recorder) Start(ctx context.Context) error
- func (r *Recorder) StartAction(ctx context.Context, id string) error
- func (r *Recorder) State() ExecutionState
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ActionState ¶
type ActionStatus ¶
type ActionStatus string
const ( ActionStatusPending ActionStatus = "pending" ActionStatusRunning ActionStatus = "running" ActionStatusCompleted ActionStatus = "completed" ActionStatusFailed ActionStatus = "failed" ActionStatusSkipped ActionStatus = "skipped" ActionStatusBlocked ActionStatus = "blocked" ActionStatusCancelled ActionStatus = "cancelled" )
type EventType ¶
type EventType string
const ( EventQueued EventType = "queued" EventStarted EventType = "started" EventWaitingApproval EventType = "waiting_approval" EventCompleted EventType = "completed" EventErrored EventType = "errored" EventCancelled EventType = "cancelled" EventActionStarted EventType = "action_started" EventActionCompleted EventType = "action_completed" EventActionFailed EventType = "action_failed" EventActionBlocked EventType = "action_blocked" EventActionSkipped EventType = "action_skipped" EventActionCancelled EventType = "action_cancelled" EventActionReset EventType = "action_reset" )
type ExecutionState ¶
type ExecutionState struct {
Status string
Error string
StartedAt *time.Time
CompletedAt *time.Time
Outputs map[string]any
Actions map[string]ActionState
CurrentActionID string
}
func Fold ¶
func Fold(events []Event) ExecutionState
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
func (*Recorder) BlockAction ¶
func (*Recorder) FinishAction ¶
func (*Recorder) SkipPending ¶
func (*Recorder) State ¶
func (r *Recorder) State() ExecutionState
Click to show internal directories.
Click to hide internal directories.