hostmetadata

package
v0.0.0-...-494f1b8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 10 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) 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.

Directories

Path Synopsis
Package instance provides functionality common to cloud providers, including synthetic cloud "instance" metadata.
Package instance provides functionality common to cloud providers, including synthetic cloud "instance" metadata.

Jump to

Keyboard shortcuts

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