Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + const AttestationInlineOnlyKey + const AttestationReasonKey + const AttestationReasonProvenance + const AttestationReasonSBOM + const AttestationSBOMCore + func EachRef[U comparable, V comparable](a *Result[U], b *Result[V], fn func(U, V) error) (err error) + func FromDigestMap(m map[string]string) []digest.Digest + func ToDigestMap(ds ...digest.Digest) map[string]string + type Attestation struct + ContentFunc func() ([]byte, error) + InToto InTotoAttestation + Kind pb.AttestationKind + Metadata map[string][]byte + Path string + Ref T + func ConvertAttestation[U comparable, V comparable](a *Attestation[U], fn func(U) (V, error)) (*Attestation[V], error) + type InTotoAttestation struct + PredicateType string + Subjects []InTotoSubject + type InTotoSubject struct + Digest []digest.Digest + Kind pb.InTotoSubjectKind + Name string + type Result struct + Attestations map[string][]Attestation[T] + Metadata map[string][]byte + Ref T + Refs map[string]T + func ConvertResult[U comparable, V comparable](r *Result[U], fn func(U) (V, error)) (*Result[V], error) + func (r *Result[T]) AddAttestation(k string, v Attestation[T]) + func (r *Result[T]) AddMeta(k string, v []byte) + func (r *Result[T]) AddRef(k string, ref T) + func (r *Result[T]) Clone() *Result[T] + func (r *Result[T]) EachRef(fn func(T) error) (err error) + func (r *Result[T]) FindRef(key string) (T, bool) + func (r *Result[T]) SetRef(ref T) + func (r *Result[T]) SingleRef() (T, error)