policyprovider

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 5

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy