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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if c, ok := g.(gateway.Client); ok {
|
gwClient.caps = g.BuildOpts().Caps
|
||||||
gwClient.caps = c.BuildOpts().Caps
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := g.Run(ctx, buildFunc); err != nil {
|
if err := g.Run(ctx, buildFunc); err != nil {
|
||||||
return errors.Wrap(err, "failed to run Build function")
|
return errors.Wrap(err, "failed to run Build function")
|
||||||
|
|
|
@ -35,6 +35,7 @@ import (
|
||||||
const frontendPrefix = "BUILDKIT_FRONTEND_OPT_"
|
const frontendPrefix = "BUILDKIT_FRONTEND_OPT_"
|
||||||
|
|
||||||
type GrpcClient interface {
|
type GrpcClient interface {
|
||||||
|
client.Client
|
||||||
Run(context.Context, client.BuildFunc) error
|
Run(context.Context, client.BuildFunc) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue