store

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Directories

Path Synopsis
change
snapshot

Jump to

Keyboard shortcuts

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