auth_provider

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: 21 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 {
	Registry string
	RepoGlob glob.Glob
	RepoStr  string

	AuthConfig authn.AuthConfig

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

	PlainHTTP             bool
	InsecureSkipTlsVerify bool
}

func (*AuthEntry) BuildCraneOptions

func (a *AuthEntry) BuildCraneOptions() ([]crane.Option, error)

func (*AuthEntry) BuildDockerConfig

func (a *AuthEntry) BuildDockerConfig(ctx context.Context, host string) (string, error)

func (*AuthEntry) BuildHelmRegistryOptions

func (a *AuthEntry) BuildHelmRegistryOptions(ctx context.Context, host string) ([]registry.ClientOption, func(), error)

func (*AuthEntry) BuildHttpTransport

func (a *AuthEntry) BuildHttpTransport() (*http.Transport, 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, ociUrl string) (*AuthEntry, error)

type OciAuthProvider

type OciAuthProvider interface {
	FindAuthEntry(ctx context.Context, ociUrl string) (*AuthEntry, error)
}

type OciAuthProviders

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

func NewDefaultAuthProviders

func NewDefaultAuthProviders(envPrefix string) *OciAuthProviders

func (*OciAuthProviders) FindAuthEntry

func (a *OciAuthProviders) FindAuthEntry(ctx context.Context, ociUrl string) (*AuthEntry, error)

func (*OciAuthProviders) RegisterAuthProvider

func (a *OciAuthProviders) RegisterAuthProvider(p OciAuthProvider, last bool)

type OciDockerConfigAuthProvider

type OciDockerConfigAuthProvider struct {
}

func (OciDockerConfigAuthProvider) FindAuthEntry

func (o OciDockerConfigAuthProvider) FindAuthEntry(ctx context.Context, ociUrl string) (*AuthEntry, error)

type OciEnvAuthProvider

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

func (*OciEnvAuthProvider) FindAuthEntry

func (a *OciEnvAuthProvider) FindAuthEntry(ctx context.Context, ociUrl string) (*AuthEntry, error)

Jump to

Keyboard shortcuts

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