story

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowStatusRunning    = model.WorkflowStatusRunning
	WorkflowStatusCompleted  = model.WorkflowStatusCompleted
	WorkflowStatusFailed     = model.WorkflowStatusFailed
	WorkflowStatusCanceled   = model.WorkflowStatusCanceled
	WorkflowStatusTerminated = model.WorkflowStatusTerminated
	WorkflowStatusTimedOut   = model.WorkflowStatusTimedOut
	WorkflowStatusUnknown    = model.WorkflowStatusUnknown

	ChapterStatusPending   = model.ChapterStatusPending
	ChapterStatusRunning   = model.ChapterStatusRunning
	ChapterStatusCompleted = model.ChapterStatusCompleted
	ChapterStatusFailed    = model.ChapterStatusFailed
	ChapterStatusSkipped   = model.ChapterStatusSkipped

	ActorTypeUser  = model.ActorTypeUser
	ActorTypeAgent = model.ActorTypeAgent
)

Variables

View Source
var (
	ErrNotFound             = service.ErrNotFound
	ErrWorkflowNotInProject = service.ErrWorkflowNotInProject
	ErrInvalidProject       = service.ErrInvalidProject
	ErrInvalidCell          = service.ErrInvalidCell
	ErrRecipeNotFound       = service.ErrRecipeNotFound
	ErrEngineUnavailable    = service.ErrEngineUnavailable
	ErrOutcomePending       = service.ErrOutcomePending
	ErrJobRunStoryMismatch  = service.ErrJobRunStoryMismatch
)

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Actor

type Actor = model.Actor

type ActorAgent

type ActorAgent = model.ActorAgent

type ActorType

type ActorType = model.ActorType

type ActorUser

type ActorUser = model.ActorUser

type ArtifactData

type ArtifactData = model.ArtifactData

type ArtifactReference

type ArtifactReference = model.ArtifactReference

type Cell

type Cell = workflowapi.Cell

type CellIterator

type CellIterator = workflowapi.CellIterator

type CellSearchFilter

type CellSearchFilter = workflowapi.SearchFilter

type CellService

type CellService = workflowapi.CellService

type ChapterDetail

type ChapterDetail = model.ChapterDetail

type ChapterStatus

type ChapterStatus = model.ChapterStatus

type GetArtifactByOrdinalRequest

type GetArtifactByOrdinalRequest = model.GetArtifactByOrdinalRequest

type GetJobRunStoryRequest

type GetJobRunStoryRequest = model.GetJobRunStoryRequest

type GetWorkflowArtifactRequest

type GetWorkflowArtifactRequest = model.GetWorkflowArtifactRequest

type GetWorkflowOutcomeRequest

type GetWorkflowOutcomeRequest = model.GetWorkflowOutcomeRequest

type GetWorkflowRequest

type GetWorkflowRequest = model.GetWorkflowRequest

type JobRunStory

type JobRunStory = model.JobRunStory

type JobRunStoryError

type JobRunStoryError = model.JobRunStoryError

type JobRunStoryNode

type JobRunStoryNode = model.JobRunStoryNode

type JobRunStoryNodeKind

type JobRunStoryNodeKind = model.JobRunStoryNodeKind

type JobRunStoryNodeStatus

type JobRunStoryNodeStatus = model.JobRunStoryNodeStatus

type JobRunStoryRecipe

type JobRunStoryRecipe = model.JobRunStoryRecipe

type JobRunStoryRecipeSource

type JobRunStoryRecipeSource = model.JobRunStoryRecipeSource

type JobRunStoryTransitionDecision

type JobRunStoryTransitionDecision = model.JobRunStoryTransitionDecision

type JobRunStoryTransitionEval

type JobRunStoryTransitionEval = model.JobRunStoryTransitionEval

type ListWorkflowsRequest

type ListWorkflowsRequest = model.ListWorkflowsRequest

type MockCellService

type MockCellService = workflowapi.MockCellService

type MockProjectService

type MockProjectService = workflowapi.MockProjectService

type Project

type Project = workflowapi.Project

type ProjectService

type ProjectService = workflowapi.ProjectService

type RecipeProvider

type RecipeProvider = service.RecipeProvider

type RecipeSourceResolver

type RecipeSourceResolver = compiler.RecipeSourceResolver

type RestartRecipeJobRequest

type RestartRecipeJobRequest = model.RestartRecipeJobRequest

type RestartRecipeJobResponse

type RestartRecipeJobResponse = model.RestartRecipeJobResponse

type Service

type Service interface {
	ListWorkflows(ctx context.Context, req ListWorkflowsRequest) ([]WorkflowSummary, error)
	GetWorkflow(ctx context.Context, req GetWorkflowRequest) (*WorkflowDetail, error)
	GetWorkflowOutcome(ctx context.Context, req GetWorkflowOutcomeRequest) (*WorkflowOutcome, error)
	GetJobRunStory(ctx context.Context, req GetJobRunStoryRequest) (*JobRunStory, error)
	RestartRecipeJob(ctx context.Context, req RestartRecipeJobRequest) (*RestartRecipeJobResponse, error)
	GetArtifactByOrdinal(ctx context.Context, req GetArtifactByOrdinalRequest) (*ArtifactData, error)
	GetWorkflowArtifact(ctx context.Context, req GetWorkflowArtifactRequest) (*ArtifactData, error)
	StartWorkflow(ctx context.Context, req StartWorkflowRequest) (*WorkflowSummary, error)
}

func New

func New(config ServiceConfig) (Service, error)

type ServiceConfig

type ServiceConfig struct {
	Engine             swf.SWFEngine
	Strata             *client.Client
	Cells              workflowapi.CellService
	Projects           workflowapi.ProjectService
	Recipes            RecipeProvider
	RootSourceResolver RecipeSourceResolver
	CELOptionsProvider template.CELOptionsProvider
}

type StartWorkflowRequest

type StartWorkflowRequest = model.StartWorkflowRequest

type WorkflowDetail

type WorkflowDetail = model.WorkflowDetail

type WorkflowOutcome

type WorkflowOutcome = model.WorkflowOutcome

type WorkflowStatus

type WorkflowStatus = model.WorkflowStatus

type WorkflowSummary

type WorkflowSummary = model.WorkflowSummary

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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