Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var B64 = base64.StdEncoding.EncodeToString
B64 is an alias for the function encoding a byte array to a Base64 string
Functions ¶
func BuildTree ¶
func BuildTree(values []*devicechange.PathValue, floatAsStr bool) ([]byte, error)
BuildTree is a function that takes an ordered array of ConfigValues and produces a structured formatted JSON tree
func DecomposeTree ¶
func DecomposeTree(genericJSON []byte) ([]*devicechange.PathValue, error)
DecomposeTree breaks a JSON file down in to paths and values without any external context - a second stage is required to align these paths to the specific devicechange got from the Read Only paths of the Model. Also the second stage is necessary resolve list indices, and leaf lists. This second stage is done in the model registry to avoid circular dependencies here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.