signer

package
v0.0.0-...-f95860a Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSignatureNotValid = fmt.Errorf("the provided signature could not be verified against any key")

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Verify(ctx context.Context, releaseDigest, location string, signature []byte) error
	Sign(releaseDigest, pullSpec string) ([]byte, error)
}

Interface performs signing and verification of the provided content. The default implementation in this package uses the container signature format defined at https://github.com/containers/image to authenticate that a given release image digest has been signed by a trusted party.

func NewFromKeyring

func NewFromKeyring(path string) (Interface, error)

Jump to

Keyboard shortcuts

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