mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@ae9d0f5
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
36
vendor/github.com/moby/buildkit/solver/result/attestation.go
generated
vendored
Normal file
36
vendor/github.com/moby/buildkit/solver/result/attestation.go
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
package result
|
||||
|
||||
import (
|
||||
pb "github.com/moby/buildkit/frontend/gateway/pb"
|
||||
digest "github.com/opencontainers/go-digest"
|
||||
)
|
||||
|
||||
type Attestation struct {
|
||||
Kind pb.AttestationKind
|
||||
|
||||
Ref string
|
||||
Path string
|
||||
|
||||
InToto InTotoAttestation
|
||||
ContentFunc func() ([]byte, error)
|
||||
}
|
||||
|
||||
type InTotoAttestation struct {
|
||||
PredicateType string
|
||||
Subjects []InTotoSubject
|
||||
}
|
||||
|
||||
type InTotoSubject struct {
|
||||
Kind pb.InTotoSubjectKind
|
||||
|
||||
Name string
|
||||
Digest []digest.Digest
|
||||
}
|
||||
|
||||
func DigestMap(ds ...digest.Digest) map[string]string {
|
||||
m := map[string]string{}
|
||||
for _, d := range ds {
|
||||
m[d.Algorithm().String()] = d.Encoded()
|
||||
}
|
||||
return m
|
||||
}
|
Reference in New Issue
Block a user