2017-08-25 20:08:18 +00:00
|
|
|
package frontend
|
|
|
|
|
|
|
|
import (
|
2018-01-16 22:30:10 +00:00
|
|
|
"context"
|
2017-10-02 04:59:34 +00:00
|
|
|
|
2019-12-09 20:50:21 +00:00
|
|
|
"github.com/moby/buildkit/client/llb"
|
2018-07-25 06:18:21 +00:00
|
|
|
gw "github.com/moby/buildkit/frontend/gateway/client"
|
2020-09-15 06:40:05 +00:00
|
|
|
"github.com/moby/buildkit/session"
|
2020-02-21 18:19:19 +00:00
|
|
|
"github.com/moby/buildkit/solver/pb"
|
2017-10-01 00:58:07 +00:00
|
|
|
digest "github.com/opencontainers/go-digest"
|
2017-08-25 20:08:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Frontend interface {
|
2020-10-02 01:51:53 +00:00
|
|
|
Solve(ctx context.Context, llb FrontendLLBBridge, opt map[string]string, inputs map[string]*pb.Definition, sid string, sm *session.Manager) (*Result, error)
|
2017-08-25 20:08:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type FrontendLLBBridge interface {
|
2020-06-30 01:06:02 +00:00
|
|
|
Solve(ctx context.Context, req SolveRequest, sid string) (*Result, error)
|
2019-12-09 20:50:21 +00:00
|
|
|
ResolveImageConfig(ctx context.Context, ref string, opt llb.ResolveImageConfigOpt) (digest.Digest, []byte, error)
|
2017-08-25 20:08:18 +00:00
|
|
|
}
|
2017-10-05 05:31:18 +00:00
|
|
|
|
2018-07-25 06:18:21 +00:00
|
|
|
type SolveRequest = gw.SolveRequest
|
2018-06-30 01:35:39 +00:00
|
|
|
|
2018-09-11 08:02:46 +00:00
|
|
|
type CacheOptionsEntry = gw.CacheOptionsEntry
|