github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/builder/builder-next/executor_windows.go (about) 1 package buildkit 2 3 import ( 4 "context" 5 "errors" 6 7 "github.com/docker/docker/daemon/config" 8 "github.com/docker/docker/pkg/idtools" 9 "github.com/docker/libnetwork" 10 "github.com/moby/buildkit/executor" 11 "github.com/moby/buildkit/executor/oci" 12 ) 13 14 func newExecutor(_, _ string, _ libnetwork.NetworkController, _ *oci.DNSConfig, _ bool, _ *idtools.IdentityMapping, _ string) (executor.Executor, error) { 15 return &winExecutor{}, nil 16 } 17 18 type winExecutor struct { 19 } 20 21 func (w *winExecutor) Run(ctx context.Context, id string, root executor.Mount, mounts []executor.Mount, process executor.ProcessInfo, started chan<- struct{}) (err error) { 22 return errors.New("buildkit executor not implemented for windows") 23 } 24 25 func (w *winExecutor) Exec(ctx context.Context, id string, process executor.ProcessInfo) error { 26 return errors.New("buildkit executor not implemented for windows") 27 } 28 29 func getDNSConfig(config.DNSConfig) *oci.DNSConfig { 30 return nil 31 }