/notary-gcr

Go library providing high-level Notary API for go-containerregistry.

Primary LanguageGoMIT LicenseMIT

notary-gcr

Go library providing high-level Notary API for go-containerregistry.

Usage

import "github.com/autonomic-ai/notary-gcr/pkg/gcr"

Construct a new Trusted GCR Repository, then use the various action support by the Repository. For example:

auth := &authn.Basic{...}
ref, _ := name.ParseReference("docker-registry.com/foo/image:latest", name.WeakValidation)

trustedRepo, _ := gcr.NewTrustedGcrRepository("~/.notary", ref, auth)

Limitation

Since google/go-containerregistry does not support token authentication yet, so if your notary server enable auth, this library may not work.