Documentation
¶
Index ¶
- func GetDefaultAzureClientOptsWithCloud(cloudConfig azcloud.Configuration) azcore.ClientOptions
- func GetDefaultIMDSRetryPolicy() retryablehttp.CheckRetry
- func GetManagedIdentityClientOpts() azcore.ClientOptions
- func GetUserAgent() string
- func NewRetryableClient(ctx context.Context) *retryablehttp.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultAzureClientOptsWithCloud ¶ added in v1.1.1
func GetDefaultAzureClientOptsWithCloud(cloudConfig azcloud.Configuration) azcore.ClientOptions
func GetDefaultIMDSRetryPolicy ¶ added in v1.1.3
func GetDefaultIMDSRetryPolicy() retryablehttp.CheckRetry
GetDefaultIMDSRetryPolicy can be applied to a retryablehttp.Client to correctly handle HTTP status codes according to IMDS retry guidance. Note that this retry policy does NOT handle extra status codes that would normally be considered retryable when acquiring MSI access tokens from IMDS.
func GetManagedIdentityClientOpts ¶ added in v1.1.1
func GetManagedIdentityClientOpts() azcore.ClientOptions
func GetUserAgent ¶ added in v1.1.1
func GetUserAgent() string
GetUserAgent returns the common User-Agent header value used in all RPCs and HTTP calls.
func NewRetryableClient ¶
func NewRetryableClient(ctx context.Context) *retryablehttp.Client
NewRetryableClient returns a *retryablehttp.Client with a custom transport which injects a specialized user agent string into the "User-Agent" header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.