cuedefs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid      = errors.New("definition is invalid")
	ErrNoDefinition = errors.New("no definition provided in config")
)

Functions

func FormatDef

func FormatDef(input interface{}) (string, error)

FormatDef takes an input and formats the go value according to cue conventions.

func FormatValue

func FormatValue(input *cue.Value) (string, error)

func ParseAction

func ParseAction(input string) (*cue.Value, error)

ParseAction parses a cue configuration defining an action. It returns the *cue.Value of a given valid action, or an error on failure.

func ParseWorkflow

func ParseWorkflow(input string) (*cue.Value, error)

ParseWorkflow parses a cue configuration defining a workflow. It returns the cue.Value of the given workflow.

Types

This section is empty.

Jump to

Keyboard shortcuts

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