auth

package
v0.0.0-...-d6a766c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AWS_CODEARTIFACT_CAPTURE_REGEX = `([a-z0-9-]+)-(.+)\.d\.codeartifact\.(.+)\.amazonaws\.com`
View Source
const AWS_CODEARTIFACT_REGISTRY_REGEX = `\.codeartifact.*\.amazonaws\.com`

Variables

This section is empty.

Functions

func IsCodeArtifactURL

func IsCodeArtifactURL(url string) bool

Types

type Authenticator

type Authenticator interface {
	// Auth returns envVars map with the authentication token set.
	Auth(ctx context.Context, envKey string, envVars map[string]string) (map[string]string, error)
}

func NewCodeArtifact

func NewCodeArtifact(ctx context.Context, url string) (Authenticator, error)

type Provider

type Provider interface {
	Provide(ctx context.Context, registryUrl string) (Authenticator, error)
}

func NewAuthProvider

func NewAuthProvider() Provider

Jump to

Keyboard shortcuts

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