Documentation ¶
Index ¶
- func Sign(r io.Reader, dataType string, w io.Writer, opts ...dsse.SignOption) error
- func Verify(ctx context.Context, policyEnvelope dsse.Envelope, ...) (map[string][]source.VerifiedCollection, error)
- func VerifySignature(r io.Reader, verifiers ...cryptoutil.Verifier) (dsse.Envelope, error)
- type RunOption
- type RunResult
- type VerifyOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Verify ¶
func Verify(ctx context.Context, policyEnvelope dsse.Envelope, policyVerifiers []cryptoutil.Verifier, opts ...VerifyOption) (map[string][]source.VerifiedCollection, error)
Verify verifies a set of attestations against a provided policy. The set of attestations that satisfy the policy will be returned if verifiation is successful.
func VerifySignature ¶
Types ¶
type RunOption ¶
type RunOption func(ro *runOptions)
func RunWithAttestationOpts ¶
func RunWithAttestationOpts(opts ...attestation.AttestationContextOption) RunOption
func RunWithAttestors ¶
func RunWithAttestors(attestors []attestation.Attestor) RunOption
func RunWithTimestampers ¶
func RunWithTimestampers(ts ...dsse.Timestamper) RunOption
type RunResult ¶
type RunResult struct { Collection attestation.Collection SignedEnvelope dsse.Envelope }
type VerifyOption ¶
type VerifyOption func(*verifyOptions)
func VerifyWithCollectionSource ¶
func VerifyWithCollectionSource(source source.Sourcer) VerifyOption
func VerifyWithSubjectDigests ¶
func VerifyWithSubjectDigests(subjectDigests []cryptoutil.DigestSet) VerifyOption
Click to show internal directories.
Click to hide internal directories.