Help us shape the future of Go! Take the 2026 Go Developer Survey

datanode

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

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