viper

package
v0.0.0-...-1cde5fb Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialResolver

func NewCredentialResolver() auth.CredentialResolver

Types

type NoMatchingResolverError

type NoMatchingResolverError struct {
	Type string
}

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, secret string) (auth.Credential, error)
}

func NewAuthResolver

func NewAuthResolver() Resolver

type ViperAuthCredential

type ViperAuthCredential struct {
	Username string
	Password string
}

func (*ViperAuthCredential) ToAuthMethod

func (b *ViperAuthCredential) ToAuthMethod() transport.AuthMethod

func (*ViperAuthCredential) Valid

func (b *ViperAuthCredential) Valid() bool

type ViperAuthResolver

type ViperAuthResolver struct{}

func (*ViperAuthResolver) Resolve

func (b *ViperAuthResolver) Resolve(_ context.Context, name string) (auth.Credential, error)

Jump to

Keyboard shortcuts

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