notary

package module
v2.0.0-...-d1367cc Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

README

notary

A collection of libraries for supporting notary v2 sign, verify, push, pull of oci artifacts

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignatureRegistry

type SignatureRegistry interface {
	Repository(ctx context.Context, name string) SignatureRepository
}

SignatureRegistry provides signature repositories

type SignatureRepository

type SignatureRepository interface {
	// Lookup finds all signatures for the specified manifest
	Lookup(ctx context.Context, manifestDigest digest.Digest) ([]digest.Digest, error)

	// Get downloads the signature by the specified digest
	Get(ctx context.Context, signatureDigest digest.Digest) ([]byte, error)

	// Put uploads the signature to the registry
	Put(ctx context.Context, signature []byte) (oci.Descriptor, error)

	// Link creates an signature artifact linking the manifest and the signature
	Link(ctx context.Context, manifest, signature oci.Descriptor) (oci.Descriptor, error)
}

SignatureRepository provides a storage for signatures

type SigningService

type SigningService interface {
	Sign(ctx context.Context, desc oci.Descriptor, references ...string) ([]byte, error)
	Verify(ctx context.Context, desc oci.Descriptor, signature []byte) ([]string, error)
}

SigningService provides signature signing and verification services.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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