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 ¶
Types ¶
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 (*Remote) Credential ¶
func (opts *Remote) Credential() auth.Credential
Credential returns a credential based on the remote options.
func (*Remote) GetAuthClient ¶
Click to show internal directories.
Click to hide internal directories.