package
0.6.7
Repository: https://github.com/xmidt-org/xmidt-agent.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AddDecorateListener adds a listener for decorate events.
AddFetchListener adds a listener for fetch events.
AssumedLifetime is the lifetime of the credentials that is assumed if the credentials service does not return a lifetime.
BootRetryWait is the time to wait before retrying the request.
FirmwareVersion is the firmware version of the device.
HardwareManufacturer is the hardware manufacturer of the device.
HardwareModel is the hardware model of the device.
HTTPClient is the HTTP client used to fetch the credentials.
IgnoreBody is a flag that indicates whether the body of the response should be ignored instead of examined for an expiration time.
LastRebootReason is the reason for the most recent reboot of the device.
LastReconnectReason is the reason for the most recent reconnect of the device.
LocalStorage is the local storage used to cache the credentials.
MacAddress is the MAC address of the device.
New creates a new credentials service object.
NowFunc is the function used to obtain the current time.
PartnerID is the partner ID of the device.
RefetchPercent is the percentage of the lifetime of the credentials that must pass before a refetch is attempted.
Required is a flag that indicates whether the credentials are required to successfully decorate a request.
SerialNumber is the serial number of the device.
URL is the URL of the credential service.
XmidtProtocol is the protocol version used by the device to communicate with the Xmidt cluster.

# Constants

No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Notes: - The network interface is set via the http.Client.

# Interfaces

Option is the interface implemented by types that can be used to configure the credentials.