make GrpcClient implement gateway.client.Client
Signed-off-by: Cory Bennett <cbennett@netflix.com>v0.8
parent
efb36aa53c
commit
dc3d45de87
|
@ -51,9 +51,7 @@ func (c *Client) Build(ctx context.Context, opt SolveOpt, product string, buildF
|
|||
return err
|
||||
}
|
||||
|
||||
if c, ok := g.(gateway.Client); ok {
|
||||
gwClient.caps = c.BuildOpts().Caps
|
||||
}
|
||||
gwClient.caps = g.BuildOpts().Caps
|
||||
|
||||
if err := g.Run(ctx, buildFunc); err != nil {
|
||||
return errors.Wrap(err, "failed to run Build function")
|
||||
|
|
|
@ -35,6 +35,7 @@ import (
|
|||
const frontendPrefix = "BUILDKIT_FRONTEND_OPT_"
|
||||
|
||||
type GrpcClient interface {
|
||||
client.Client
|
||||
Run(context.Context, client.BuildFunc) error
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue