Documentation ¶
Index ¶
Constants ¶
View Source
const ( VerifyCommand = "VERIFY" CommandEnvKey = "RATIFY_VERIFIER_COMMAND" SubjectEnvKey = "RATIFY_VERIFIER_SUBJECT" VersionEnvKey = "RATIFY_VERIFIER_VERSION" )
Variables ¶
This section is empty.
Functions ¶
func NewVerifier ¶
func NewVerifier(version string, verifierConfig config.VerifierConfig, pluginPaths []string) (verifier.ReferenceVerifier, error)
NewVerifier creates a new verifier from the given configuration
Types ¶
type VerifierPlugin ¶
type VerifierPlugin struct {
// contains filtered or unexported fields
}
VerifierPlugin describes a verifier that is implemented by invoking the plugins
func (*VerifierPlugin) CanVerify ¶
func (vp *VerifierPlugin) CanVerify(ctx context.Context, referenceDescriptor ocispecs.ReferenceDescriptor) bool
func (*VerifierPlugin) Name ¶
func (vp *VerifierPlugin) Name() string
func (*VerifierPlugin) Verify ¶
func (vp *VerifierPlugin) Verify(ctx context.Context, subjectReference common.Reference, referenceDescriptor ocispecs.ReferenceDescriptor, store referrerstore.ReferrerStore, executor e.Executor) (verifier.VerifierResult, error)
type VerifierPluginArgs ¶
VerifierPluginArgs describes arguments that are passed to the verifier plugin
func (*VerifierPluginArgs) AsEnviron ¶
func (args *VerifierPluginArgs) AsEnviron() []string
Click to show internal directories.
Click to hide internal directories.