domain

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package domain defines the stable lifecycle vocabulary enforced by the Fenced kernel. It has no infrastructure dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAttemptTransition

func ValidateAttemptTransition(from, to AttemptPhase) error

func ValidateRunTransition

func ValidateRunTransition(from, to RunPhase) error

func ValidateTaskTransition

func ValidateTaskTransition(from, to TaskPhase) error

Types

type AttemptPhase

type AttemptPhase string
const (
	AttemptPending         AttemptPhase = "PENDING"
	AttemptPlaced          AttemptPhase = "PLACED"
	AttemptStarting        AttemptPhase = "STARTING"
	AttemptRunning         AttemptPhase = "RUNNING"
	AttemptWaitingTool     AttemptPhase = "WAITING_TOOL"
	AttemptWaitingAgent    AttemptPhase = "WAITING_AGENT"
	AttemptWaitingApproval AttemptPhase = "WAITING_APPROVAL"
	AttemptCheckpointing   AttemptPhase = "CHECKPOINTING"
	AttemptCompleted       AttemptPhase = "COMPLETED"
	AttemptFailed          AttemptPhase = "ATTEMPT_FAILED"
	AttemptCancelRequested AttemptPhase = "CANCEL_REQUESTED"
	AttemptCancelled       AttemptPhase = "CANCELLED"
)

func (AttemptPhase) Terminal

func (p AttemptPhase) Terminal() bool

type RunPhase

type RunPhase string
const (
	RunPending   RunPhase = "PENDING"
	RunRunning   RunPhase = "RUNNING"
	RunCompleted RunPhase = "COMPLETED"
	RunFailed    RunPhase = "FAILED"
	RunCancelled RunPhase = "CANCELLED"
	RunTimedOut  RunPhase = "TIMED_OUT"
)

func (RunPhase) Terminal

func (p RunPhase) Terminal() bool

type TaskPhase

type TaskPhase string
const (
	TaskQueued    TaskPhase = "QUEUED"
	TaskAdmitted  TaskPhase = "ADMITTED"
	TaskRunning   TaskPhase = "RUNNING"
	TaskSucceeded TaskPhase = "SUCCEEDED"
	TaskFailed    TaskPhase = "FAILED"
	TaskCancelled TaskPhase = "CANCELLED"
	TaskTimedOut  TaskPhase = "TIMED_OUT"
	TaskRejected  TaskPhase = "REJECTED"
)

func (TaskPhase) Terminal

func (p TaskPhase) Terminal() bool

Jump to

Keyboard shortcuts

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