secret

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Values for scret types supported by porch.
	BasicAuthType = corev1.SecretTypeBasicAuth
)

Variables

This section is empty.

Functions

func NewCredentialResolver

func NewCredentialResolver(client client.Reader, resolverChain []Resolver) auth.CredentialResolver

Types

type BasicAuthCredential

type BasicAuthCredential struct {
	Username string
	Password string
}

func (*BasicAuthCredential) ToAuthMethod

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

func (*BasicAuthCredential) Valid

func (b *BasicAuthCredential) Valid() bool

type BasicAuthResolver

type BasicAuthResolver struct{}

func (*BasicAuthResolver) Resolve

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 corev1.Secret) (auth.Credential, bool, error)
}

func NewBasicAuthResolver

func NewBasicAuthResolver() Resolver

Jump to

Keyboard shortcuts

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