Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyProvider ¶
type PolicyProvider interface { // VerifyNeeded determines if the given reference needs verification VerifyNeeded(ctx context.Context, subjectReference common.Reference, referenceDesc ocispecs.ReferenceDescriptor) bool // ContinueVerifyOnFailure determines if the given error can be ignored and verification can be continued. ContinueVerifyOnFailure(ctx context.Context, subjectReference common.Reference, referenceDesc ocispecs.ReferenceDescriptor, partialVerifyResult types.VerifyResult) bool // ErrorToVerifyResult converts an error to a properly formatted verify result ErrorToVerifyResult(ctx context.Context, subjectRefString string, verifyError error) types.VerifyResult // OverallVerifyResult determines the final outcome of verification that is constructed using the results from // individual verifications OverallVerifyResult(ctx context.Context, verifierReports []interface{}) bool // GetPolicyType returns the type of the policy. GetPolicyType(ctx context.Context) string }
PolicyProvider is an interface with methods that represents policy decisions.
Click to show internal directories.
Click to hide internal directories.