workflow

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSchedule

func RunSchedule(ctx context.Context, cfg Config) error

RunSchedule creates a WorkflowRun for one schedule tick.

func ValidateCronSchedule

func ValidateCronSchedule(schedule string) error

ValidateCronSchedule rejects schedules Kubernetes CronJobs will not accept.

func ValidateInputs

func ValidateInputs(ctx context.Context, c *gatewayapi.ClientWithResponses, tknPath, ns string, gk schema.GroupKind, name, agtName, wfName string, raw []byte, path *field.Path) error

ValidateInputs loads one workflow definition and validates runtime inputs.

func ValidateTimeZone

func ValidateTimeZone(name string) error

ValidateTimeZone rejects time zone names Kubernetes will not resolve.

func ValidateWorkflowInputs added in v0.25.0

func ValidateWorkflowInputs(definition *gatewayapi.Workflow, gk schema.GroupKind, name string, raw []byte, path *field.Path) error

ValidateWorkflowInputs checks inputs against the supplied definition so frozen runs and live workflow callers share the same admission errors.

Types

type Config

type Config struct {
	Namespace      string
	ScheduleName   string
	AgentName      string
	WorkflowName   string
	InputsJSON     string
	TimeoutSeconds int32
}

Config defines one CronJob-triggered WorkflowRun request.

type Issue

type Issue struct {
	Field   string
	Message string
}

Issue reports one workflow input contract validation failure.

func ValidateDefinition

func ValidateDefinition(inputs *gatewayapi.WorkflowInputs, arbitraryJSON *gatewayapi.WorkflowArbitraryJSON) ([]Issue, error)

ValidateDefinition validates one workflow input contract definition.

func ValidateValues

func ValidateValues(raw []byte, inputs *gatewayapi.WorkflowInputs, arbitraryJSON *gatewayapi.WorkflowArbitraryJSON, fieldPrefix string) ([]Issue, error)

ValidateValues validates runtime inputs against one workflow input contract.

Jump to

Keyboard shortcuts

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