Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fingerprint ¶
type Fingerprint struct { FullHostname string `json:"fullHostname"` Hostname string `json:"hostname"` CloudProviderId string `json:"cloudProviderId"` DisplayName string `json:"displayName"` BootID string `json:"bootId"` IpAddresses Addresses `json:"ipAddresses"` MacAddresses Addresses `json:"macAddresses"` }
Fingerprint is used in the agent connect step when communicating with the backend. Based on it the backend will uniquely identify the agent and respond with the entityKey and entityId.
func (*Fingerprint) Equals ¶
func (f *Fingerprint) Equals(new Fingerprint) bool
Equals check to see if current fingerprint is equal to provided one.
type Harvester ¶
type Harvester interface {
Harvest() (fp Fingerprint, err error)
}
Harvester harvest agent's fingerprint.
type MockHarvestor ¶
type MockHarvestor struct{}
MockHarvestor Harvester mock
func (*MockHarvestor) Harvest ¶
func (ir *MockHarvestor) Harvest() (Fingerprint, error)
Harvest retrieves agent fingerprint.
Click to show internal directories.
Click to hide internal directories.