tree

package
v0.10.24 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTree

func BuildTree(values []*configapi.PathValue, jsonRFC7951 bool) ([]byte, error)

BuildTree is a function that takes an ordered array of ConfigValues and produces a structured formatted JSON tree For YANG the only type of float value is decimal, which is represented as a string - therefore all float value must be string in JSON Same with int64 and uin64 as per RFC 7951

func PrunePathMap added in v0.10.20

func PrunePathMap(pathMap map[string]*configapi.PathValue, leaveTopDeletedPaths bool) map[string]*configapi.PathValue

PrunePathMap produces a copy of the given path values map, with paths marked as deleted and their sub-paths removed. If leaveTopDeletedPaths parameter is true, the top-most deleted node will be left behind as a tomb-stone; otherwise all deleted nodes will be pruned from the list.

func PrunePathValues added in v0.10.20

func PrunePathValues(paths []*configapi.PathValue, leaveTopDeletedPaths bool) []*configapi.PathValue

PrunePathValues produces a copy of the given path values list, with paths marked as deleted and their sub-paths removed. If leaveTopDeletedPaths parameter is true, the top-most deleted node will be left behind as a tomb-stone; otherwise all deleted nodes will be pruned from the list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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