package
0.11.0-beta.3
Repository: https://github.com/rubrikinc/rubrik-polaris-sdk-for-go.git
Documentation: pkg.go.dev

# Functions

Deprecated: Use NewCacheWithDir instead.
NewCacheWithDir returns a new cache wrapping the specified token source.
Deprecated: use NewUserSourceWithLogger.
NewRoundTripper returns a new token RoundTripper decorating the specified http.RoundTripper.
Deprecated: The logger parameter will be dropped in the next release, use NewServiceAccountSourceWithLogger.
NewServiceAccountSourceWithLogger returns a new token source that uses the specified client to obtain tokens.
NewUserSource returns a new token source that uses the specified client to obtain tokens.
NewUserSourceWithLogger returns a new token source that uses the specified client to obtain tokens.
Request tries to acquire a token using the provided parameters.
RequestWithContext tries to acquire a token using the provided parameters.

# Structs

RoundTripper decorates an existing RoundTripper and injects an Authorization header with a valid access token.
ServiceAccountSource holds all the information needed to obtain a token for a service account.
UserSource holds all the information needed to obtain a token for a user account.

# Interfaces

Source is used to obtain access tokens from a remote source.

# Type aliases

Deprecated: use UserSource.