parser

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte) (*types.Requirements, error)

Unmarshal parses the Ansible Requirements defined in data.

func UnmarshalFromFile

func UnmarshalFromFile(path string) (*types.Requirements, error)

UnmarshalFromFile parses the Requirements defined in the file stored at the given path.

Types

type UnexpectedMappingNodeValueError

type UnexpectedMappingNodeValueError struct {
	// contains filtered or unexported fields
}

UnexpectedMappingNodeValueError is returned when parsing a MappingNode, the parser encounters an unexpected dictionary key.

func NewUnexpectedMappingNodeValueError

func NewUnexpectedMappingNodeValueError(line int, value string) *UnexpectedMappingNodeValueError

NewUnexpectedMappingNodeValueError creates a new UnexpectedMappingNodeValueError

func (*UnexpectedMappingNodeValueError) Error

type UnexpectedNodeKindError

type UnexpectedNodeKindError struct {
	// contains filtered or unexported fields
}

UnexpectedNodeKindError is returned when the parser encounters an unexpeted yaml.Node kind while parsing roles or requirements.

func NewUnexpectedNodeKindError

func NewUnexpectedNodeKindError(line int, kind yaml.Kind) *UnexpectedNodeKindError

NewUnexpectedNodeKindError creates a new UnexpectedNodeKindError

func (*UnexpectedNodeKindError) Error

func (e *UnexpectedNodeKindError) Error() string

Jump to

Keyboard shortcuts

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