Documentation ¶
Overview ¶
Package Verifier provides an implementation of notation.Verifier interface
Index ¶
- Constants
- Variables
- func New(trustPolicy *trustpolicy.Document, trustStore truststore.X509TrustStore, ...) (notation.Verifier, error)
- func NewFromConfig() (notation.Verifier, error)
- func NewWithOptions(trustPolicy *trustpolicy.Document, trustStore truststore.X509TrustStore, ...) (notation.Verifier, error)
- type VerifierOptions
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 ¶
View Source
var VerificationPluginHeaders = []string{ HeaderVerificationPlugin, HeaderVerificationPluginMinVersion, }
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 |
Click to show internal directories.
Click to hide internal directories.