token

package
v0.0.0-...-0f4a8a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: Apache-2.0, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialResolver

func NewCredentialResolver(resolverChain []Resolver) auth.CredentialResolver

Types

type NoMatchingResolverError

type NoMatchingResolverError struct {
}

func (*NoMatchingResolverError) Error

func (e *NoMatchingResolverError) Error() string

func (*NoMatchingResolverError) Is

func (e *NoMatchingResolverError) Is(err error) bool

type Resolver

type Resolver interface {
	Resolve(ctx context.Context) (auth.Credential, bool, error)
}

func NewTokenResolver

func NewTokenResolver() Resolver

type TokenCredential

type TokenCredential struct {
	Username string
	Password string
}

func (*TokenCredential) ToAuthMethod

func (r *TokenCredential) ToAuthMethod() transport.AuthMethod

func (*TokenCredential) Valid

func (r *TokenCredential) Valid() bool

type TokenResolver

type TokenResolver struct{}

func (*TokenResolver) Resolve

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL