//
pkg.gl
Category
github.com/drone/go-scm
scm
transport
oauth2
package
1.39.2
Repository:
https://github.com/drone/go-scm.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
11
Files
167 SLOC
#
Functions
ContextTokenSource
ContextTokenSource returns a TokenSource that returns a token from the http.Request context.
StaticTokenSource
StaticTokenSource returns a TokenSource that always returns the same token.
#
Constants
SchemeBearer
Supported authentication schemes.
SchemeToken
Supported authentication schemes.
#
Structs
Refresher
Refresher is an http.RoundTripper that refreshes oauth tokens, wrapping a base RoundTripper and refreshing the token if expired.
Transport
Transport is an http.RoundTripper that refreshes oauth tokens, wrapping a base RoundTripper and refreshing the token if expired.