mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	vendor: update buildkit to master@9624ab4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										5
									
								
								vendor/github.com/moby/buildkit/frontend/gateway/client/attestation.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/moby/buildkit/frontend/gateway/client/attestation.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -3,9 +3,14 @@ package client
 | 
			
		||||
import (
 | 
			
		||||
	pb "github.com/moby/buildkit/frontend/gateway/pb"
 | 
			
		||||
	"github.com/moby/buildkit/solver/result"
 | 
			
		||||
	"github.com/pkg/errors"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func AttestationToPB(a *result.Attestation) (*pb.Attestation, error) {
 | 
			
		||||
	if a.ContentFunc != nil {
 | 
			
		||||
		return nil, errors.Errorf("attestation callback cannot be sent through gateway")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	subjects := make([]*pb.InTotoSubject, len(a.InToto.Subjects))
 | 
			
		||||
	for i, subject := range a.InToto.Subjects {
 | 
			
		||||
		subjects[i] = &pb.InTotoSubject{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user