Documentation ¶
Overview ¶
Package auth provides the token and roundtripper for bearer based authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenRoundTripper ¶
type BearerTokenRoundTripper struct { TraceID string // contains filtered or unexported fields }
func NewBearerTokenRoundTripper ¶
func NewBearerTokenRoundTripper(l log.Logger, t TokenProvider, r http.RoundTripper) *BearerTokenRoundTripper
type FileToken ¶
type FileToken struct {
// contains filtered or unexported fields
}
func NewFileToken ¶
type StaticToken ¶
type StaticToken struct {
// contains filtered or unexported fields
}
func NewNoOpTokenProvider ¶
func NewNoOpTokenProvider() *StaticToken
func NewStaticToken ¶
func NewStaticToken(token string) *StaticToken
func (*StaticToken) Get ¶
func (t *StaticToken) Get() (string, error)
type TokenProvider ¶
Click to show internal directories.
Click to hide internal directories.