Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBearerToken ¶
func NewBearerToken(token string, rt http.RoundTripper) http.RoundTripper
NewBearerToken returns an http.RoundTripper that adds the bearer token to a request's header
func NewBearerTokenFile ¶
func NewBearerTokenFile(tokenFile string, rt http.RoundTripper) http.RoundTripper
NewBearerTokenFile returns an http.RoundTripper that adds the bearer token from a file to a request's header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.