kv

package
v2.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(pairs []*store.KVPair, element interface{}, rootName string) error

Decode decodes the given KV pairs into the given element. The operation goes through three stages roughly summarized as: KV pairs -> tree of untyped nodes untyped nodes -> nodes augmented with metadata such as kind (inferred from element) "typed" nodes -> typed element.

func DecodeToNode

func DecodeToNode(pairs []*store.KVPair, rootName string, filters ...string) (*parser.Node, error)

DecodeToNode converts the labels to a tree of nodes. If any filters are present, labels which do not match the filters are skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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