hostmetadata

package
v0.0.0-...-6ad74a7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector implements host metadata collection and reporting

func NewCollector

func NewCollector(caEndpoint string) *Collector

NewCollector returns a new Collector for the specified collection agent endpoint.

func (*Collector) AddCustomData

func (c *Collector) AddCustomData(key, value string)

AddCustomData adds a custom key/value pair to the host metadata.

func (*Collector) GetHostMetadata

func (c *Collector) GetHostMetadata() map[string]string

GetHostMetadata returns a map that contains all host metadata key/value pairs.

func (*Collector) StartMetadataCollection

func (c *Collector) StartMetadataCollection(ctx context.Context,
	rep reporter.HostMetadataReporter)

StartMetadataCollection starts a goroutine that reports host metadata every collectionInterval.

Jump to

Keyboard shortcuts

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