jobs

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: 0BSD Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownIngredient = errors.New("unknown ingredient")
	ErrUnknownMethod     = errors.New("unknown method")
)

Functions

func NewRecipeCooker

func NewRecipeCooker(id types.StepID, ingredient types.Ingredient, method string, params map[string]interface{}) (types.RecipeCooker, error)

func RegisterAllMethods

func RegisterAllMethods(step types.RecipeCooker)

func RegisterEC

func RegisterEC(conn *nats.EncodedConn)

Types

type JobRecord

type JobRecord struct {
	JID        string
	SproutID   string
	Timestamp  time.Time
	Executor   types.Executor
	Completion types.CompletionStatus
}

type MethodProps

type MethodProps struct {
	Key   string
	Type  string
	IsReq bool
}

type MethodPropsSet

type MethodPropsSet []MethodProps

func PropMapToPropSet

func PropMapToPropSet(pmap map[string]string) (MethodPropsSet, error)

func (MethodPropsSet) ToMap

func (m MethodPropsSet) ToMap() map[string]string

type RecordKeeper

type RecordKeeper interface{}

Jump to

Keyboard shortcuts

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