mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	vendor: update buildkit to f238f1e
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		
							
								
								
									
										4
									
								
								vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -47,6 +47,8 @@ const ( | ||||
| 	defaultFreq       = time.Minute * 30 | ||||
| 	defaultDNSSvrPort = "53" | ||||
| 	golang            = "GO" | ||||
| 	// txtPrefix is the prefix string to be prepended to the host name for txt record lookup. | ||||
| 	txtPrefix = "_grpc_config." | ||||
| 	// In DNS, service config is encoded in a TXT record via the mechanism | ||||
| 	// described in RFC-1464 using the attribute name grpc_config. | ||||
| 	txtAttribute = "grpc_config=" | ||||
| @@ -282,7 +284,7 @@ func (d *dnsResolver) lookupSRV() []resolver.Address { | ||||
| } | ||||
|  | ||||
| func (d *dnsResolver) lookupTXT() string { | ||||
| 	ss, err := d.resolver.LookupTXT(d.ctx, d.host) | ||||
| 	ss, err := d.resolver.LookupTXT(d.ctx, txtPrefix+d.host) | ||||
| 	if err != nil { | ||||
| 		grpclog.Infof("grpc: failed dns TXT record lookup due to %v.\n", err) | ||||
| 		return "" | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/google.golang.org/grpc/resolver/passthrough/passthrough.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/google.golang.org/grpc/resolver/passthrough/passthrough.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -45,7 +45,7 @@ type passthroughResolver struct { | ||||
| } | ||||
|  | ||||
| func (r *passthroughResolver) start() { | ||||
| 	r.cc.NewAddress([]resolver.Address{{Addr: r.target.Endpoint}}) | ||||
| 	r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: r.target.Endpoint}}}) | ||||
| } | ||||
|  | ||||
| func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOption) {} | ||||
|   | ||||
							
								
								
									
										15
									
								
								vendor/google.golang.org/grpc/resolver/resolver.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								vendor/google.golang.org/grpc/resolver/resolver.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -98,6 +98,15 @@ type BuildOption struct { | ||||
| 	DisableServiceConfig bool | ||||
| } | ||||
|  | ||||
| // State contains the current Resolver state relevant to the ClientConn. | ||||
| type State struct { | ||||
| 	Addresses     []Address // Resolved addresses for the target | ||||
| 	ServiceConfig string    // JSON representation of the service config | ||||
|  | ||||
| 	// TODO: add Err error | ||||
| 	// TODO: add ParsedServiceConfig interface{} | ||||
| } | ||||
|  | ||||
| // ClientConn contains the callbacks for resolver to notify any updates | ||||
| // to the gRPC ClientConn. | ||||
| // | ||||
| @@ -106,12 +115,18 @@ type BuildOption struct { | ||||
| // testing, the new implementation should embed this interface. This allows | ||||
| // gRPC to add new methods to this interface. | ||||
| type ClientConn interface { | ||||
| 	// UpdateState updates the state of the ClientConn appropriately. | ||||
| 	UpdateState(State) | ||||
| 	// NewAddress is called by resolver to notify ClientConn a new list | ||||
| 	// of resolved addresses. | ||||
| 	// The address list should be the complete list of resolved addresses. | ||||
| 	// | ||||
| 	// Deprecated: Use UpdateState instead. | ||||
| 	NewAddress(addresses []Address) | ||||
| 	// NewServiceConfig is called by resolver to notify ClientConn a new | ||||
| 	// service config. The service config should be provided as a json string. | ||||
| 	// | ||||
| 	// Deprecated: Use UpdateState instead. | ||||
| 	NewServiceConfig(serviceConfig string) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tonis Tiigi
					Tonis Tiigi