Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTree ¶
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.