Documentation
¶
Index ¶
- func ApplyRegister(step config.Step, outputs map[string]any, runtimeVars map[string]any, ...) error
- func DecodeSpec[T any](spec map[string]any) (T, error)
- func DetectHostFacts(goos string, goarch string, readFile HostFactsReader) map[string]any
- func EvaluateWhen(expr string, vars map[string]any, runtime map[string]any, errCode string) (bool, error)
- func EvaluateWhenWithContext(expr string, vars map[string]any, runtime map[string]any, ...) (bool, error)
- func FindPhase(wf *config.Workflow, name string) (config.Phase, bool)
- func IsReservedRuntimeVar(runtimeKey string) bool
- func MustStepRoleHandlers[T any](role string, handlers map[string]T) map[string]T
- func RenderSpec(spec map[string]any, wf *config.Workflow, runtimeVars map[string]any, ...) (map[string]any, error)
- func RenderSpecWithExtra(spec map[string]any, wf *config.Workflow, runtimeVars map[string]any, ...) (map[string]any, error)
- func ResolveWholeValueTemplate(input string, ctx map[string]any) (any, bool, error)
- func StepAllowedForRoleForKey(role string, key StepTypeKey) (bool, error)
- func StepHasOutputForKey(key StepTypeKey, output string) (bool, error)
- func StepKinds() ([]string, error)
- func StepKindsForRole(role string) []string
- func StepRoleHandlerForKey[T any](role string, handlers map[string]T, key StepTypeKey) (T, bool, error)
- func StepRoleHandlers[T any](role string, handlers map[string]T) (map[string]T, error)
- func StepSchemaFileForKey(key StepTypeKey) (string, bool, error)
- type BuiltInTypeDefinition
- func BuiltInTypeDefinitionForKey(key StepTypeKey) (BuiltInTypeDefinition, bool, error)
- func BuiltInTypeDefinitionForKeyWith(key StepTypeKey, toolBuilder func(StepDefinition) ToolMetadata, ...) (BuiltInTypeDefinition, bool, error)
- func BuiltInTypeDefinitions() ([]BuiltInTypeDefinition, error)
- func BuiltInTypeDefinitionsWith(toolBuilder func(StepDefinition) ToolMetadata, ...) ([]BuiltInTypeDefinition, error)
- type FieldDoc
- type HostFactsReader
- type RuntimeFieldDefinition
- type SchemaMetadata
- type StepBatch
- type StepDefinition
- type StepTypeKey
- type ToolMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRegister ¶
func DetectHostFacts ¶
func DetectHostFacts(goos string, goarch string, readFile HostFactsReader) map[string]any
func EvaluateWhen ¶
func EvaluateWhenWithContext ¶ added in v0.2.6
func IsReservedRuntimeVar ¶
func MustStepRoleHandlers ¶ added in v0.2.3
func RenderSpec ¶
func RenderSpecWithExtra ¶
func StepAllowedForRoleForKey ¶
func StepAllowedForRoleForKey(role string, key StepTypeKey) (bool, error)
func StepHasOutputForKey ¶
func StepHasOutputForKey(key StepTypeKey, output string) (bool, error)
func StepKindsForRole ¶ added in v0.2.2
func StepRoleHandlerForKey ¶ added in v0.2.3
func StepRoleHandlers ¶ added in v0.2.3
func StepSchemaFileForKey ¶
func StepSchemaFileForKey(key StepTypeKey) (string, bool, error)
Types ¶
type BuiltInTypeDefinition ¶
type BuiltInTypeDefinition = workflowcontract.BuiltInTypeDefinition
func BuiltInTypeDefinitionForKey ¶
func BuiltInTypeDefinitionForKey(key StepTypeKey) (BuiltInTypeDefinition, bool, error)
func BuiltInTypeDefinitionForKeyWith ¶ added in v0.2.0
func BuiltInTypeDefinitionForKeyWith(key StepTypeKey, toolBuilder func(StepDefinition) ToolMetadata, schemaBuilder func(StepDefinition) (SchemaMetadata, error)) (BuiltInTypeDefinition, bool, error)
func BuiltInTypeDefinitions ¶
func BuiltInTypeDefinitions() ([]BuiltInTypeDefinition, error)
func BuiltInTypeDefinitionsWith ¶ added in v0.2.0
func BuiltInTypeDefinitionsWith(toolBuilder func(StepDefinition) ToolMetadata, schemaBuilder func(StepDefinition) (SchemaMetadata, error)) ([]BuiltInTypeDefinition, error)
type FieldDoc ¶
type FieldDoc = workflowcontract.FieldDoc
These aliases keep schema/documentation callers on the workflowexec facade when they need runtime step keys and contract projections together.
type HostFactsReader ¶
type RuntimeFieldDefinition ¶ added in v0.2.6
func RuntimeHostFieldDefinitions ¶ added in v0.2.6
func RuntimeHostFieldDefinitions() []RuntimeFieldDefinition
type SchemaMetadata ¶
type SchemaMetadata = workflowcontract.SchemaMetadata
type StepBatch ¶
type StepBatch struct {
PhaseName string
ParallelGroup string
MaxParallelism int
Steps []config.Step
}
func BuildPhaseBatches ¶
type StepDefinition ¶
type StepDefinition = workflowcontract.StepDefinition
StepDefinition is re-exported so runtime packages can use workflowexec as the facade for step keys, role checks, and dispatch registration.
func StepDefinitionForKey ¶
func StepDefinitionForKey(key StepTypeKey) (StepDefinition, bool, error)
func StepDefinitions ¶
func StepDefinitions() ([]StepDefinition, error)
type StepTypeKey ¶
type StepTypeKey = workflowcontract.StepTypeKey
func ResolveStepTypeKey ¶
func ResolveStepTypeKey(workflowVersion, stepAPIVersion, kind string) (StepTypeKey, error)
type ToolMetadata ¶
type ToolMetadata = workflowcontract.ToolMetadata
Click to show internal directories.
Click to hide internal directories.