auth

package
v2.24.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEntry

type AuthEntry struct {
	CredentialsId string

	Host     string
	PathGlob glob.Glob
	PathStr  string

	Username string
	Password string

	Cert []byte
	Key  []byte
	CA   []byte

	InsecureSkipTLSverify bool
	PassCredentialsAll    bool
}

func (*AuthEntry) BuildEntry

func (e *AuthEntry) BuildEntry(ctx context.Context, repoUrl url.URL) (*repo.Entry, CleanupFunc, error)

func (*AuthEntry) Match

func (e *AuthEntry) Match(repoUrl url.URL, credentialsId string) bool

type CleanupFunc

type CleanupFunc func()

type HelmAuthProvider

type HelmAuthProvider interface {
	FindAuthEntry(ctx context.Context, repoUrl url.URL, credentialsId string) (*repo.Entry, CleanupFunc, error)
}

type HelmAuthProviders

type HelmAuthProviders struct {
	// contains filtered or unexported fields
}

func NewDefaultAuthProviders

func NewDefaultAuthProviders(envPrefix string) *HelmAuthProviders

func (*HelmAuthProviders) FindAuthEntry

func (a *HelmAuthProviders) FindAuthEntry(ctx context.Context, repoUrl url.URL, credentialsId string) (*repo.Entry, CleanupFunc, error)

func (*HelmAuthProviders) RegisterAuthProvider

func (a *HelmAuthProviders) RegisterAuthProvider(p HelmAuthProvider, last bool)

type HelmConfigAuthProvider

type HelmConfigAuthProvider struct {
}

func (*HelmConfigAuthProvider) FindAuthEntry

func (a *HelmConfigAuthProvider) FindAuthEntry(ctx context.Context, repoUrl url.URL, credentialsId string) (*repo.Entry, CleanupFunc, error)

type HelmEnvAuthProvider

type HelmEnvAuthProvider struct {
	Prefix string
	// contains filtered or unexported fields
}

func (*HelmEnvAuthProvider) FindAuthEntry

func (a *HelmEnvAuthProvider) FindAuthEntry(ctx context.Context, repoUrl url.URL, credentialsId string) (*repo.Entry, CleanupFunc, error)

type ListAuthProvider

type ListAuthProvider struct {
	// contains filtered or unexported fields
}

func (*ListAuthProvider) AddEntry

func (a *ListAuthProvider) AddEntry(e AuthEntry)

func (*ListAuthProvider) FindAuthEntry

func (a *ListAuthProvider) FindAuthEntry(ctx context.Context, repoUrl url.URL, credentialsId string) (*repo.Entry, CleanupFunc, error)

Jump to

Keyboard shortcuts

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