Documentation ¶
Index ¶
- Variables
- func CookRecipeEnvelope(envelope types.RecipeEnvelope) error
- func GenerateJobID() string
- func RegisterEC(n *nats.EncodedConn)
- func RequisitesAreMet(step types.Step, completionMap map[types.StepID]types.StepCompletion) (bool, error)
- func ResolveRecipeFilePath(basepath string, recipeID types.RecipeName) (string, error)
- func SendCookEvent(sproutID string, recipeID types.RecipeName, JID string) error
- func SummarizeSteps(steps []types.SproutStepCompletion) map[string]types.Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRecipe = errors.New("no recipe") ErrInvalidFormat = errors.New("invalid recipe format") ErrDuplicateKey = errors.New("duplicate key in joined maps") )
View Source
var ( ErrStalled = errors.New("no steps are in progress") ErrRequisiteNotMet = errors.New("requisite not met") )
Functions ¶
func CookRecipeEnvelope ¶ added in v0.0.5
func CookRecipeEnvelope(envelope types.RecipeEnvelope) error
func GenerateJobID ¶ added in v0.0.3
func GenerateJobID() string
func RegisterEC ¶ added in v0.0.3
func RegisterEC(n *nats.EncodedConn)
func RequisitesAreMet ¶ added in v0.0.5
func RequisitesAreMet(step types.Step, completionMap map[types.StepID]types.StepCompletion) (bool, error)
RequisitesAreMet returns true if all of the requisites for the given step are met All top-level requisites are ANDed together, and meta states can be combined with an ANY clauses to use OR logic instead
func ResolveRecipeFilePath ¶
func ResolveRecipeFilePath(basepath string, recipeID types.RecipeName) (string, error)
func SendCookEvent ¶ added in v0.0.5
func SendCookEvent(sproutID string, recipeID types.RecipeName, JID string) error
func SummarizeSteps ¶ added in v0.0.13
func SummarizeSteps(steps []types.SproutStepCompletion) map[string]types.Summary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.