Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth2Transport ¶
type OAuth2Transport struct { Domain string Audience string ClientID string ClientSecret string Scope []string Transport http.RoundTripper Logger logger.Logger Expiry time.Time Token string // contains filtered or unexported fields }
based on https://pkg.go.dev/golang.org/x/oauth2/clientcredentials
func (*OAuth2Transport) GetToken ¶
func (t *OAuth2Transport) GetToken(ctx context.Context) (string, error)
func (*OAuth2Transport) RefreshToken ¶
func (t *OAuth2Transport) RefreshToken(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.