parse

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkip = errors.New("skip this node")

ErrSkip is used as a return value for Walk to indicate child stages or steps should be skipped.

View Source
var ErrSkipAll = errors.New("skip all node")

ErrSkipAll is used as a return value for Walk to indicate all subsequent nodes should be skipped

Functions

func Parse

func Parse(r io.Reader) (*schema.Config, error)

Parse parses the configuration from io.Reader r.

func ParseBytes

func ParseBytes(b []byte) (*schema.Config, error)

ParseBytes parses the configuration from bytes b.

func ParseFile

func ParseFile(p string) (*schema.Config, error)

ParseFile parses the configuration from path p.

func ParseMulti

func ParseMulti(r io.Reader) ([]*schema.Config, error)

ParseMulti parses a multi-document configuration from io.Reader r.

func ParseMultiBytes

func ParseMultiBytes(b []byte) ([]*schema.Config, error)

ParseMultiBytes parses a multi-document configuration from bytes b.

func ParseMultiFile

func ParseMultiFile(p string) ([]*schema.Config, error)

ParseMultiFile parses a multi-document configuration from path p.

func ParseString

func ParseString(s string) (*schema.Config, error)

ParseString parses the configuration from string s.

func Walk

func Walk(in *schema.Config, fn WalkFunc) error

Walk walks the configuration file and calls fn for stages and steps.

Types

type WalkFunc

type WalkFunc func(interface{}) error

WalkFunc is the type of the function called for stages and steps visited by Walk.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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