Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessKeyAuth ¶ added in v0.22.0
func AccessKeyAuth( appCtx context.Context, accessKey string, endpoint string, transport *http2.Transport, retryBackoffTime time.Duration, ) func(ctx context.Context, force bool) (string, error)
AccessKeyAuth creates a new AuthTokenProvider that fetches auth tokens using an access key. If options is set to nil then the default options will be used.
The supplied app context will be passed when performing background operations such as refreshing the access token, which ensures that no operation outlives the lifetime of the application.
By default the AuthTokenProvider will fetch the access key from the environment variable `STATELY_ACCESS_KEY` however this can be explicitly overridden by passing credentials in the options. If no credentials are found, this will return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.