datanode

package
v0.0.0-...-17f8324 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataNode

type DataNode interface {

	// The name of the schema node this data represents
	YangDataName() string

	// The child nodes of this node. Either nodes in a container, or entries
	// in a list, including keys.  Note that NoSorting() guarantees we won't
	// waste time sorting the reply on each call (which is slow), though if
	// returning a cached list it may have already been sorted.
	YangDataChildren() []DataNode
	YangDataChildrenNoSorting() []DataNode

	// The values of a leaf or a leaf-list
	YangDataValues() []string
	YangDataValuesNoSorting() []string
}

* A simple interface for presenting YANG data. * * The layout closely matches the YANG model, specifically the JSON encoding * of the document where lists are children of a list node and leaf-lists * exist as a list of children.

func CreateDataNode

func CreateDataNode(name string, children []DataNode, values []string) DataNode

Jump to

Keyboard shortcuts

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