metadata

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 4 Imported by: 0

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 cpus provides a metadata plugin returning information about the CPUs in the system that are currently “online”.
Package cpus provides a metadata plugin returning information about the CPUs in the system that are currently “online”.
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.

Jump to

Keyboard shortcuts

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