policyverify

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "policyverify"
	Type    = slsa.VerificationSummaryPredicate
	RunType = attestation.VerifyRunType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor

type Attestor struct {
	*ipolicy.VerifyPolicySignatureOptions
	slsa.VerificationSummary
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Attestor

func (*Attestor) Attest

func (a *Attestor) Attest(ctx *attestation.AttestationContext) error

func (*Attestor) Name

func (a *Attestor) Name() string

func (*Attestor) RunType

func (a *Attestor) RunType() attestation.RunType

func (*Attestor) Schema

func (a *Attestor) Schema() *jsonschema.Schema

func (*Attestor) StepResults

func (a *Attestor) StepResults() map[string]policy.StepResult

func (*Attestor) Subjects

func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet

func (*Attestor) Type

func (a *Attestor) Type() string

type Option

type Option func(*Attestor)

func VerifyWithCollectionSource

func VerifyWithCollectionSource(source source.Sourcer) Option

func VerifyWithPolicyEnvelope

func VerifyWithPolicyEnvelope(policyEnvelope dsse.Envelope) Option

func VerifyWithPolicyVerificationOptions

func VerifyWithPolicyVerificationOptions(opts ...ipolicy.Option) Option

func VerifyWithSubjectDigests

func VerifyWithSubjectDigests(subjectDigests []cryptoutil.DigestSet) Option

Jump to

Keyboard shortcuts

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