policyprovider

package
v1.2.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL