package
0.0.0-20230405161658-2e60efa9cda7
Repository: https://github.com/steiler/yang-parser.git
Documentation: pkg.go.dev

# Functions

This is the code that actually does the work for leafref predicates.
Dumb function that uses brute force to find a node with the given path.
No description provided by the author
If no nodes, return empty string.
Return a slice of strings containing the string-value for each node in <nodes>.
No description provided by the author
Return true (match) if filter matches target or filter is AllChildren Note that filter may be '<namespaceName>:*'.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
If 2 nodes have the same NodeString then they are identical.
No description provided by the author
Generate a unique string representation of a node, in 'leafref' format, including all key values for list entries, and ending with a leaf or leaf-list value if the node is of those types.
No description provided by the author
Naive implementation is to simply loop through range of nodes and if not already in our return list, add them.
No description provided by the author
Takes root node and verifies at each level: - parent is correct - root is correct - children have correct parent - children have unique NodeString - no child is equal to another child - index is as expected.
Walk tree, calling workFn for each node, then children, recursively.

# Constants

The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
No description provided by the author
No description provided by the author
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
No description provided by the author
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
No description provided by the author
The parser expects the lexer to return 0 on EOF.
No description provided by the author
No description provided by the author
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
The parser expects the lexer to return 0 on EOF.
No description provided by the author
The parser expects the lexer to return 0 on EOF.
No description provided by the author
No description provided by the author
The parser expects the lexer to return 0 on EOF.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
This is the global wildcard, representing all child nodes regardless of module.

# Structs

NodeRef: These allow Leafref-like objects be constructed and manipulated.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

To isolate us from node types we may want to work with, we have our own interface.

# Type aliases

No description provided by the author
PATHTYPE Useful to have this for manipulating paths.
No description provided by the author
TargetType - node type of the target to be matched Subtly different to MatchType as here we want to specify the type of our node explicitly whereas for MatchType we want to specify a set of types to be matched.
No description provided by the author