Help us shape the future of Go! Take the 2026 Go Developer Survey

notary-gcr

module
v0.0.0-...-d99a631 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT

README

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.

Directories

Path Synopsis
pkg
gcr

Jump to

Keyboard shortcuts

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