Documentation ¶
Overview ¶
Package metadata defines an extensible metadata mechanism that allows to augment Gostwire discoveries and discovery service results, using plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Augment ¶
func Augment(result gostwire.DiscoveryResult, metadata interface{}) (map[string]interface{}, error)
Augment augments the passed metadata with additional plugin-supplied metadata and returns the final result in form of a string-indexed map, ready to be used in JSON marshalling, et cetera.
Types ¶
type Metadata ¶
type Metadata func(gostwire.DiscoveryResult) map[string]interface{}
Metadata is a plugin function that returns (additional) metadata, optionally basing on a discovery result. The returned metadata must be in form of JSON marshallable data (especially struct) and the top-level map string indices, when marshalling into JSON, will become field names inside the metadata toplevel discovery result element.
Directories ¶
Path | Synopsis |
---|---|
Package all pulls in all Ghostwire metadata plugins.
|
Package all pulls in all Ghostwire metadata plugins. |
Package engines implements a metadata plugin returning information about the container engines for which containers were discovered.
|
Package engines implements a metadata plugin returning information about the container engines for which containers were discovered. |
Package host implements a metadata plugin returning information about the host system the discovery was run on.
|
Package host implements a metadata plugin returning information about the host system the discovery was run on. |
Package iecore implements a metadata plugin that returns information about the Industrial Edge (“core”) runtime container, if present.
|
Package iecore implements a metadata plugin that returns information about the Industrial Edge (“core”) runtime container, if present. |