navigator

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewYangNodeNavigator

func NewYangNodeNavigator(root *yang.Entry, device ygot.ValidatedGoStruct) xpath.NodeNavigator

Types

type XpathEvaluate added in v0.8.16

type XpathEvaluate struct {
	Name     string
	Path     string
	Expected interface{}
}

type XpathSelect added in v0.8.16

type XpathSelect struct {
	Name     string
	Path     string
	Expected []string
}

type YangNodeNavigator

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

YangNodeNavigator - implements xpath.NodeNavigator

func (*YangNodeNavigator) Copy

Copy does a deep copy of the YangNodeNavigator and all its components.

func (*YangNodeNavigator) LocalName

func (x *YangNodeNavigator) LocalName() string

LocalName gets the Name of the current node.

func (*YangNodeNavigator) MoveTo

func (x *YangNodeNavigator) MoveTo(other xpath.NodeNavigator) bool

MoveTo moves the YangNodeNavigator to the same position as the specified YangNodeNavigator.

func (*YangNodeNavigator) MoveToChild

func (x *YangNodeNavigator) MoveToChild() bool

MoveToChild moves the YangNodeNavigator to the first child node of the current node.

func (*YangNodeNavigator) MoveToFirst

func (x *YangNodeNavigator) MoveToFirst() bool

MoveToFirst moves the YangNodeNavigator to the first sibling node of the current node.

func (*YangNodeNavigator) MoveToNext

func (x *YangNodeNavigator) MoveToNext() bool

MoveToNext moves the YangNodeNavigator to the next sibling node of the current node.

func (*YangNodeNavigator) MoveToNextAttribute

func (x *YangNodeNavigator) MoveToNextAttribute() bool

MoveToNextAttribute moves the YangNodeNavigator to the next attribute on current node.

func (*YangNodeNavigator) MoveToParent

func (x *YangNodeNavigator) MoveToParent() bool

MoveToParent moves the YangNodeNavigator to the parent node of the current node.

func (*YangNodeNavigator) MoveToPrevious

func (x *YangNodeNavigator) MoveToPrevious() bool

MoveToPrevious moves the YangNodeNavigator to the previous sibling node of the current node.

func (*YangNodeNavigator) MoveToRoot

func (x *YangNodeNavigator) MoveToRoot()

MoveToRoot moves the YangNodeNavigator to the root node of the current node.

func (*YangNodeNavigator) NodeType

func (x *YangNodeNavigator) NodeType() xpath.NodeType

NodeType returns the XPathNodeType of the current node.

func (*YangNodeNavigator) Prefix

func (x *YangNodeNavigator) Prefix() string

Prefix returns namespace prefix associated with the current node.

func (*YangNodeNavigator) Value

func (x *YangNodeNavigator) Value() string

Value gets the value of current node.

func (*YangNodeNavigator) WalkAndValidateMust added in v0.8.16

func (x *YangNodeNavigator) WalkAndValidateMust() error

WalkAndValidateMust - walk through the YNN and validate any Must statements This goes down first and then across

Jump to

Keyboard shortcuts

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