package
0.12.0-beta.1
Repository: https://github.com/notaryproject/notation-go.git
Documentation: pkg.go.dev
# Functions
GetVerificationLevel returns VerificationLevel struct for the given SignatureVerification struct throws error if SignatureVerification is invalid.
IsValidTrustStorePrefix returns true if the given string is a valid TrustStorePrefix, otherwise false.
LoadX509TrustStore loads a named trust store from a certificates directory, throws error if parsing a certificate from a file fails.
No description provided by the author
WithPluginConfig is used by callers to set the plugin config in the context.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VerificationPlugin specifies the name of the verification plugin that should be used to verify the signature.
VerificationPluginMinVersion specifies the minimum version of the verification plugin that should be used to verify the signature.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ErrorNoApplicableTrustPolicy is used when there is no trust policy that applies to the given artifact.
ErrorSignatureRetrievalFailed is used when notation is unable to retrieve the digital signature/s for the given artifact.
ErrorVerificationFailed is used when it is determined that the digital signature/s is not valid for the given artifact.
ErrorVerificationInconclusive is used when signature verification fails due to a runtime error (e.g.
PolicyDocument represents a trustPolicy.json document.
SignatureVerification represents verification configuration in a trust policy.
SignatureVerificationOutcome encapsulates the SignerInfo (that includes the details of the digital signature) and results for each verification type that was performed.
TrustPolicy represents a policy statement in the policy document.
VerificationLevel encapsulates the signature verification preset and it's actions for each verification type.
VerificationResult encapsulates the verification result (passed or failed) for a verification type, including the desired verification action as specified in the trust policy.
No description provided by the author
X509TrustStore provide the members and behavior for a named trust store.
# Type aliases
TrustStorePrefix is an enum for trust store prefixes supported such as "ca", "signingAuthority".
VerificationAction is an enum for signature verification actions such as Enforced, Logged, Skipped.
VerificationType is an enum for signature verification types such as Integrity, Authenticity, etc.