Documentation
¶
Index ¶
- Constants
- Variables
- func IsNotFound(err error) bool
- type Actor
- type ActorAgent
- type ActorType
- type ActorUser
- type ArtifactData
- type ArtifactReference
- type Cell
- type CellIterator
- type CellSearchFilter
- type CellService
- type ChapterDetail
- type ChapterStatus
- type GetArtifactByOrdinalRequest
- type GetJobRunStoryRequest
- type GetWorkflowArtifactRequest
- type GetWorkflowOutcomeRequest
- type GetWorkflowRequest
- type JobRunStory
- type JobRunStoryError
- type JobRunStoryNode
- type JobRunStoryNodeKind
- type JobRunStoryNodeStatus
- type JobRunStoryRecipe
- type JobRunStoryRecipeSource
- type JobRunStoryTransitionDecision
- type JobRunStoryTransitionEval
- type ListWorkflowsRequest
- type MockCellService
- type MockProjectService
- type Project
- type ProjectService
- type RecipeProvider
- type RecipeSourceResolver
- type RestartRecipeJobRequest
- type RestartRecipeJobResponse
- type Service
- type ServiceConfig
- type StartWorkflowRequest
- type WorkflowDetail
- type WorkflowOutcome
- type WorkflowStatus
- type WorkflowSummary
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 ErrOutcomePending = service.ErrOutcomePending ErrJobRunStoryMismatch = service.ErrJobRunStoryMismatch )
Functions ¶
func IsNotFound ¶
Types ¶
type ActorAgent ¶
type ActorAgent = model.ActorAgent
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
Click to show internal directories.
Click to hide internal directories.