parsers

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CouldNotLoadTemplate = "Could not load template %s: %s"
	LoadedWithWarnings   = "Loaded template %s: with syntax warning : %s"
)
View Source
const (
	SyntaxWarningStats       = "syntax-warnings"
	SyntaxErrorStats         = "syntax-errors"
	RuntimeWarningsStats     = "runtime-warnings"
	UnsignedWarning          = "unsigned-warnings"
	HeadlessFlagWarningStats = "headless-flag-missing-warnings"
	TemplatesExecutedStats   = "templates-executed"
	CodeFlagWarningStats     = "code-flag-missing-warnings"
)

Variables

View Source
var (
	ShouldValidate bool
	NoStrictSyntax bool
)

Functions

func LoadTemplate

func LoadTemplate(templatePath string, tagFilter *filter.TagFilter, extraTags []string, catalog catalog.Catalog) (bool, error)

LoadTemplate returns true if the template is valid and matches the filtering criteria.

func LoadWorkflow

func LoadWorkflow(templatePath string, catalog catalog.Catalog) (bool, error)

LoadWorkflow returns true if the workflow is valid and matches the filtering criteria.

func NewLoader

func NewLoader(options *protocols.ExecutorOptions) (model.WorkflowLoader, error)

NewLoader returns a new workflow loader structure

func ParseTemplate

func ParseTemplate(templatePath string, catalog catalog.Catalog) (*templates.Template, error)

ParseTemplate parses a template and returns a *templates.Template structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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