Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Credential interface {
Token(ctx context.Context, options ...TokenOption) (Token, error)
}
Credential is the interface that wraps around method Token.
type TokenOption ¶ added in v0.10.0
type TokenOption func(o *TokenOptions)
TokenOption is a function that sets options for a token request.
func WithScope ¶ added in v0.10.0
func WithScope(scope string) TokenOption
WithScope sets the scope of the token request.
type TokenOptions ¶ added in v0.10.0
type TokenOptions struct {
Scope string
}
TokenOptions contains options for a token request.
Click to show internal directories.
Click to hide internal directories.