github.com/zhouyu0/docker-note@v0.0.0-20190722021225-b8d3825084db/builder/builder-next/executor_windows.go (about) 1 package buildkit 2 3 import ( 4 "context" 5 "errors" 6 "io" 7 8 "github.com/docker/libnetwork" 9 "github.com/moby/buildkit/cache" 10 "github.com/moby/buildkit/executor" 11 ) 12 13 func newExecutor(_, _ string, _ libnetwork.NetworkController) (executor.Executor, error) { 14 return &winExecutor{}, nil 15 } 16 17 type winExecutor struct { 18 } 19 20 func (e *winExecutor) Exec(ctx context.Context, meta executor.Meta, rootfs cache.Mountable, mounts []executor.Mount, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error { 21 return errors.New("buildkit executor not implemented for windows") 22 }