Skip to content

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

License

Notifications You must be signed in to change notification settings

simonshyu/notary-gcr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notary-gcr

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

Usage

import "github.com/simonshyu/notary-gcr/pkg/gcr"

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

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

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

Limitation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published