Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVMUniqueIDNotFound = errors.New("vm unique ID not found") ErrUnexpectedStatusCode = errors.New("imds returned an unexpected status code") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client returns metadata about the VM by querying IMDS
type ClientOption ¶
type ClientOption func(*clientConfig)
func Endpoint ¶
func Endpoint(endpoint string) ClientOption
Endpoint overrides the default endpoint for a Client
func RetryAttempts ¶
func RetryAttempts(attempts uint) ClientOption
RetryAttempts overrides the default retry attempts for the client
Click to show internal directories.
Click to hide internal directories.