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 ¶
NewCollector returns a new Collector for the specified collection agent endpoint.
func (*Collector) AddCustomData ¶
AddCustomData adds a custom key/value pair to the host metadata.
func (*Collector) GetHostMetadata ¶
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.
Click to show internal directories.
Click to hide internal directories.