verifier

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 28 Imported by: 7

Documentation

Overview

Package Verifier provides an implementation of notation.Verifier interface

Index

Constants

View Source
const (
	// HeaderVerificationPlugin specifies the name of the verification plugin
	// that should be used to verify the signature.
	HeaderVerificationPlugin = "io.cncf.notary.verificationPlugin"

	// HeaderVerificationPluginMinVersion specifies the minimum version of the
	// verification plugin that should be used to verify the signature.
	HeaderVerificationPluginMinVersion = "io.cncf.notary.verificationPluginMinVersion"
)

Variables

VerificationPluginHeaders specifies headers of a verification plugin

Functions

func New

func New(trustPolicy *trustpolicy.Document, trustStore truststore.X509TrustStore, pluginManager plugin.Manager) (notation.Verifier, error)

New creates a new verifier given trustPolicy, trustStore and pluginManager

func NewFromConfig

func NewFromConfig() (notation.Verifier, error)

NewFromConfig returns a verifier based on local file system

func NewWithOptions

func NewWithOptions(trustPolicy *trustpolicy.Document, trustStore truststore.X509TrustStore, pluginManager plugin.Manager, opts VerifierOptions) (notation.Verifier, error)

NewWithOptions creates a new verifier given trustPolicy, trustStore, pluginManager, and VerifierOptions

Types

type VerifierOptions

type VerifierOptions struct {
	// RevocationClient is an implementation of revocation.Revocation to use for
	// verifying revocation
	RevocationClient revocation.Revocation
}

VerifierOptions specifies additional parameters that can be set when using the NewWithOptions constructor

Directories

Path Synopsis
Package trustpolicy provides functionalities for trust policy document and trust policy statements.
Package trustpolicy provides functionalities for trust policy document and trust policy statements.
Package truststore reads certificates in a trust store
Package truststore reads certificates in a trust store

Jump to

Keyboard shortcuts

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