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 ¶
func (e *UnexpectedMappingNodeValueError) Error() string
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
Click to show internal directories.
Click to hide internal directories.