cook

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: 0BSD Imports: 20 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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