Documentation ¶
Index ¶
- func Get(path []string, object interface{}) interface{}
- func GetValue(path []string, object interface{}) (*types.Any, error)
- func List(path []string, object interface{}) []string
- func NewPluginFromChannel(writes <-chan func(map[string]interface{})) metadata.Plugin
- func NewPluginFromData(data map[string]interface{}) metadata.Plugin
- func Path(path string) metadata.Path
- func PathFromStrings(a string, b ...string) metadata.Path
- func Put(path []string, value interface{}, object map[string]interface{}) bool
- func String(p metadata.Path) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(path []string, object interface{}) interface{}
Get returns the attribute of the object at path
func NewPluginFromChannel ¶
NewPluginFromChannel returns a plugin implementation where reads and writes are serialized via channel of functions that have a view to the metadata. Closing the write channel stops the serialized read/writes and falls back to unserialized reads.
func NewPluginFromData ¶
NewPluginFromData creates a plugin out of a simple data map. Note the updates to the map is not guarded and synchronized with the reads.
func PathFromStrings ¶
PathFromStrings returns the path from a list of strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.