Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicTransport ¶
type BasicTransport struct { Username string `cfg:"username"` Password string `cfg:"password"` // contains filtered or unexported fields }
Oauth2Transport wraps oauth2.Transport to suspend CancelRequest.
func (BasicTransport) BasicRoundTripper ¶
func (t BasicTransport) BasicRoundTripper(_ context.Context, transport http.RoundTripper) (http.RoundTripper, error)
BasicRoundTripper returns a new RoundTripper that adds a basic auth header to the request.
If Source is nil, returns transport as-is.
type Provider ¶
type Provider struct { auth.Provider `cfg:",squash"` BasicAuth BasicTransport `cfg:"basic"` }
Click to show internal directories.
Click to hide internal directories.