github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/builder/builder-next/executor_windows.go (about)

     1  package buildkit
     2  
     3  import (
     4  	"context"
     5  	"errors"
     6  	"io"
     7  
     8  	"github.com/docker/docker/daemon/config"
     9  	"github.com/docker/docker/pkg/idtools"
    10  	"github.com/docker/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  }