witness

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(r io.Reader, dataType string, w io.Writer, signers ...cryptoutil.Signer) error

func VerifySignature

func VerifySignature(r io.Reader, verifiers ...cryptoutil.Verifier) (dsse.Envelope, error)

Types

type CollectionEnvelope added in v0.1.7

type CollectionEnvelope struct {
	Envelope  dsse.Envelope
	Reference string
}

func Verify

func Verify(policyEnvelope dsse.Envelope, policyVerifiers []cryptoutil.Verifier, opts ...VerifyOption) ([]CollectionEnvelope, error)

VerifyE verifies a dsse envelopes against a policy and returns the envelopes on success

type RunOption

type RunOption func(ro *runOptions)

func RunWithAttestationOpts

func RunWithAttestationOpts(opts ...attestation.AttestationContextOption) RunOption

func RunWithAttestors

func RunWithAttestors(attestors []string) RunOption

func RunWithCommand

func RunWithCommand(command []string) RunOption

func RunWithTracing

func RunWithTracing(tracing bool) RunOption

type RunResult

type RunResult struct {
	Collection     attestation.Collection
	SignedEnvelope dsse.Envelope
}

func Run

func Run(stepName string, signer cryptoutil.Signer, opts ...RunOption) (RunResult, error)

type VerifyOption

type VerifyOption func(*verifyOptions)

func VerifyWithCollectionEnvelopes

func VerifyWithCollectionEnvelopes(collectionEnvelopes []CollectionEnvelope) VerifyOption

VerifyWithPolicy verifies a dsse envelopes against a policy

Jump to

Keyboard shortcuts

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