mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: update buildkit to 664c2b469f19
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
7
vendor/github.com/moby/buildkit/session/manager.go
generated
vendored
7
vendor/github.com/moby/buildkit/session/manager.go
generated
vendored
@ -16,7 +16,6 @@ type Caller interface {
|
||||
Context() context.Context
|
||||
Supports(method string) bool
|
||||
Conn() *grpc.ClientConn
|
||||
Name() string
|
||||
SharedKey() string
|
||||
}
|
||||
|
||||
@ -106,7 +105,6 @@ func (sm *Manager) handleConn(ctx context.Context, conn net.Conn, opts map[strin
|
||||
|
||||
h := http.Header(opts)
|
||||
id := h.Get(headerSessionID)
|
||||
name := h.Get(headerSessionName)
|
||||
sharedKey := h.Get(headerSessionSharedKey)
|
||||
|
||||
ctx, cc, err := grpcClientConn(ctx, conn)
|
||||
@ -118,7 +116,6 @@ func (sm *Manager) handleConn(ctx context.Context, conn net.Conn, opts map[strin
|
||||
c := &client{
|
||||
Session: Session{
|
||||
id: id,
|
||||
name: name,
|
||||
sharedKey: sharedKey,
|
||||
ctx: ctx,
|
||||
cancelCtx: cancel,
|
||||
@ -197,10 +194,6 @@ func (c *client) Context() context.Context {
|
||||
return c.context()
|
||||
}
|
||||
|
||||
func (c *client) Name() string {
|
||||
return c.name
|
||||
}
|
||||
|
||||
func (c *client) SharedKey() string {
|
||||
return c.sharedKey
|
||||
}
|
||||
|
5
vendor/github.com/moby/buildkit/session/session.go
generated
vendored
5
vendor/github.com/moby/buildkit/session/session.go
generated
vendored
@ -38,7 +38,6 @@ type Attachable interface {
|
||||
type Session struct {
|
||||
mu sync.Mutex // synchronizes conn run and close
|
||||
id string
|
||||
name string
|
||||
sharedKey string
|
||||
ctx context.Context
|
||||
cancelCtx func(error)
|
||||
@ -49,7 +48,7 @@ type Session struct {
|
||||
}
|
||||
|
||||
// NewSession returns a new long running session
|
||||
func NewSession(ctx context.Context, name, sharedKey string) (*Session, error) {
|
||||
func NewSession(ctx context.Context, sharedKey string) (*Session, error) {
|
||||
id := identity.NewID()
|
||||
|
||||
serverOpts := []grpc.ServerOption{
|
||||
@ -67,7 +66,6 @@ func NewSession(ctx context.Context, name, sharedKey string) (*Session, error) {
|
||||
|
||||
s := &Session{
|
||||
id: id,
|
||||
name: name,
|
||||
sharedKey: sharedKey,
|
||||
grpcServer: grpc.NewServer(serverOpts...),
|
||||
}
|
||||
@ -103,7 +101,6 @@ func (s *Session) Run(ctx context.Context, dialer Dialer) error {
|
||||
|
||||
meta := make(map[string][]string)
|
||||
meta[headerSessionID] = []string{s.id}
|
||||
meta[headerSessionName] = []string{s.name}
|
||||
meta[headerSessionSharedKey] = []string{s.sharedKey}
|
||||
|
||||
for name, svc := range s.grpcServer.GetServiceInfo() {
|
||||
|
Reference in New Issue
Block a user