Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attestation ¶
type Attestation struct { Kind pb.AttestationKind Ref string Path string ContentFunc func() ([]byte, error) InToto InTotoAttestation }
type InTotoAttestation ¶
type InTotoAttestation struct { PredicateType string Subjects []InTotoSubject }
type InTotoSubject ¶
type InTotoSubject struct { Kind pb.InTotoSubjectKind Name string Digest []digest.Digest }
type Result ¶
type Result[T any] struct { Ref T Refs map[string]T Metadata map[string][]byte Attestations map[string][]Attestation // contains filtered or unexported fields }
func ConvertResult ¶
func (*Result[T]) AddAttestation ¶
func (r *Result[T]) AddAttestation(k string, v Attestation, ref T)
Click to show internal directories.
Click to hide internal directories.