Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSchedule ¶
RunSchedule creates a WorkflowRun for one schedule tick.
func ValidateCronSchedule ¶
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 ¶
ValidateTimeZone rejects time zone names Kubernetes will not resolve.
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 ¶
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.