2018-05-15 22:21:08 +00:00
|
|
|
package buildkit
|
|
|
|
|
|
|
|
import (
|
2018-05-25 15:18:44 -07:00
|
|
|
"context"
|
2018-05-15 22:21:08 +00:00
|
|
|
"errors"
|
2018-05-25 15:18:44 -07:00
|
|
|
"io"
|
2018-05-15 22:21:08 +00:00
|
|
|
|
2018-08-02 14:24:34 -07:00
|
|
|
"github.com/docker/libnetwork"
|
2018-05-25 15:18:44 -07:00
|
|
|
"github.com/moby/buildkit/cache"
|
2018-05-15 22:21:08 +00:00
|
|
|
"github.com/moby/buildkit/executor"
|
|
|
|
)
|
|
|
|
|
2018-09-06 11:50:41 -07:00
|
|
|
func newExecutor(_, _ string, _ libnetwork.NetworkController) (executor.Executor, error) {
|
2018-05-25 15:18:44 -07:00
|
|
|
return &winExecutor{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type winExecutor struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *winExecutor) Exec(ctx context.Context, meta executor.Meta, rootfs cache.Mountable, mounts []executor.Mount, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error {
|
|
|
|
return errors.New("buildkit executor not implemented for windows")
|
2018-05-15 22:21:08 +00:00
|
|
|
}
|