Help us shape the future of Go! Take the 2026 Go Developer Survey

validate

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterWorkflowTemplate added in v4.1.0

ClusterWorkflowTemplate accepts a cluster workflow template and performs validation against it.

func CronWorkflow added in v4.1.0

CronWorkflow validates a CronWorkflow

func SubstituteResourceManifestExpressions

func SubstituteResourceManifestExpressions(manifest string) string

func VerifyResolvedVariables

func VerifyResolvedVariables(obj any) error

VerifyResolvedVariables is a helper to ensure all {{variables}} have been resolved for a object

func Workflow added in v4.1.0

Workflow accepts a workflow and performs validation against it.

func WorkflowTemplate added in v4.1.0

WorkflowTemplate accepts a workflow template and performs validation against it.

func WorkflowTemplateRefFields added in v4.1.0

func WorkflowTemplateRefFields(wfSpec wfv1.WorkflowSpec) error

Types

type FakeArguments

type FakeArguments struct{}

func (*FakeArguments) GetArtifactByName

func (args *FakeArguments) GetArtifactByName(name string) *wfv1.Artifact

func (*FakeArguments) GetParameterByName

func (args *FakeArguments) GetParameterByName(name string) *wfv1.Parameter

type Opts added in v4.1.0

type Opts struct {
	// Lint indicates if this is performing validation in the context of linting. If true, will
	// skip some validations which is permissible during linting but not submission (e.g. missing
	// input parameters to the workflow)
	Lint bool

	// IgnoreEntrypoint indicates to skip/ignore the EntryPoint validation on workflow spec.
	// Entrypoint is optional for WorkflowTemplate and ClusterWorkflowTemplate
	IgnoreEntrypoint bool

	// WorkflowTemplateValidation indicates that the current context is validating a WorkflowTemplate or ClusterWorkflowTemplate
	WorkflowTemplateValidation bool

	// Submit indicates that the current operation is a workflow submission. This will impose
	// more stringent requirements (e.g. require input values for all spec arguments)
	Submit bool
}

Opts provides options when linting

Jump to

Keyboard shortcuts

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