Documentation ¶
Index ¶
- Constants
- func NewVerifier(version string, verifierConfig config.VerifierConfig, pluginPaths []string) (verifier.ReferenceVerifier, error)
- type VerifierPlugin
- func (vp *VerifierPlugin) CanVerify(ctx context.Context, referenceDescriptor ocispecs.ReferenceDescriptor) bool
- func (vp *VerifierPlugin) GetNestedReferences() []string
- func (vp *VerifierPlugin) Name() string
- func (vp *VerifierPlugin) Verify(ctx context.Context, subjectReference common.Reference, ...) (verifier.VerifierResult, error)
- type VerifierPluginArgs
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) GetNestedReferences ¶
func (vp *VerifierPlugin) GetNestedReferences() []string
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) (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.