registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GHCR       = "ghcr.io"
	DOCKER     = "registry-1.docker.io"
	GCR        = "gcr.io"
	GAR        = "docker.pkg.dev"
	ECR_PUBLIC = "public.ecr.aws"
	AWS_REGION = "us-east-1"
)
View Source
const (
	NotaryV2ArtifactType         = "application/vnd.cncf.notary.signature"
	NotaryV2AnnotationThumbprint = "io.cncf.notary.x509chain.thumbprint#S256"
	ArtifactManifestMediaType    = "application/vnd.oci.artifact.manifest.v1+json"
	ImageManifestMediaType       = "application/vnd.oci.image.manifest.v1+json"
	CosignSigArtifactType        = "application/vnd.dev.cosign.artifact.sig.v1+json"
	CosignSBOMArtifactType       = "application/vnd.dev.cosign.artifact.sbom.v1+json"
)

Variables

This section is empty.

Functions

func FindRepositories

func FindRepositories(ctx context.Context, org string, namespace string, username string, password string, token string, regclient *oremote.Registry, last string, fn func(repos []string) error) error

Types

type Common

type Common struct {
	Debug   bool
	Verbose bool
}

type Remote

type Remote struct {
	CACertFilePath    string
	PlainHTTP         bool
	Insecure          bool
	Configs           []string
	Username          string
	PasswordFromStdin bool
	Password          string
	// contains filtered or unexported fields
}

Remote options struct.

func NewRegistry

func NewRegistry(host string) (reg *Remote)

func (*Remote) Credential

func (opts *Remote) Credential() auth.Credential

Credential returns a credential based on the remote options.

func (*Remote) GetAuthClient

func (opts *Remote) GetAuthClient(registry string, debug bool) (client *auth.Client, cred auth.Credential, err error)

Jump to

Keyboard shortcuts

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