Documentation
¶
Overview ¶
Package protomap provides utilities that map ygen-generated protobuf messages to and from other types (e.g., gNMI Notification messages, or ygen-generated GoStructs).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathsFromProto ¶
PathsFromProto returns, from a populated proto, a map between the YANG schema path (as specified in the yext.schemapath extension) and the value populated in the message.
func ProtoFromPaths ¶ added in v0.10.13
ProtoFromPaths takes an input ygot-generated protobuf and unmarshals the values that are specified in the map vals into it, using prefix as the prefix to any paths within the vals map. The message, p, is modified in place. The map, vals, must be keyed by the gNMI path to the field which is annotated in the ygot generated protobuf, the complete path is taken to be prefix + the key found in the map.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package integration_tests performs tests against real-world schemas for protomap.
|
Package integration_tests performs tests against real-world schemas for protomap. |