Help us shape the future of Go! Take the 2026 Go Developer Survey

configpolicy

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyEnforcer

type PolicyEnforcer struct {
	ArtifactTypePolicies map[string]vt.ArtifactTypeVerifyPolicy
}

PolicyEnforcer describes different polices that are enforced during verification

func (PolicyEnforcer) ContinueVerifyOnFailure

func (enforcer PolicyEnforcer) ContinueVerifyOnFailure(_ context.Context, _ common.Reference, referenceDesc ocispecs.ReferenceDescriptor, _ types.VerifyResult) bool

ContinueVerifyOnFailure determines if the given error can be ignored and verification can be continued.

func (PolicyEnforcer) ErrorToVerifyResult

func (enforcer PolicyEnforcer) ErrorToVerifyResult(_ context.Context, subjectRefString string, verifyError error) types.VerifyResult

ErrorToVerifyResult converts an error to a properly formatted verify result

func (PolicyEnforcer) GetPolicyType

func (enforcer PolicyEnforcer) GetPolicyType(_ context.Context) string

GetPolicyType returns the type of the policy.

func (PolicyEnforcer) OverallVerifyResult

func (enforcer PolicyEnforcer) OverallVerifyResult(_ context.Context, verifierReports []interface{}) bool

OverallVerifyResult determines the final outcome of verification that is constructed using the results from individual verifications

func (PolicyEnforcer) VerifyNeeded

VerifyNeeded determines if the given subject/reference artifact should be verified

Jump to

Keyboard shortcuts

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