github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/builder/builder-next/executor_windows.go (about) 1 package buildkit 2 3 import ( 4 "context" 5 "errors" 6 "io" 7 8 "github.com/demonoid81/moby/daemon/config" 9 "github.com/demonoid81/moby/pkg/idtools" 10 "github.com/demonoid81/libnetwork" 11 "github.com/moby/buildkit/cache" 12 "github.com/moby/buildkit/executor" 13 "github.com/moby/buildkit/executor/oci" 14 ) 15 16 func newExecutor(_, _ string, _ libnetwork.NetworkController, _ *oci.DNSConfig, _ bool, _ *idtools.IdentityMapping) (executor.Executor, error) { 17 return &winExecutor{}, nil 18 } 19 20 type winExecutor struct { 21 } 22 23 func (e *winExecutor) Exec(ctx context.Context, meta executor.Meta, rootfs cache.Mountable, mounts []executor.Mount, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error { 24 return errors.New("buildkit executor not implemented for windows") 25 } 26 27 func getDNSConfig(config.DNSConfig) *oci.DNSConfig { 28 return nil 29 }