executor_windows.go 936 B

123456789101112131415161718192021222324252627282930
  1. package buildkit
  2. import (
  3. "context"
  4. "errors"
  5. "github.com/docker/docker/daemon/config"
  6. "github.com/docker/docker/libnetwork"
  7. "github.com/docker/docker/pkg/idtools"
  8. "github.com/moby/buildkit/executor"
  9. "github.com/moby/buildkit/executor/oci"
  10. )
  11. func newExecutor(_, _ string, _ *libnetwork.Controller, _ *oci.DNSConfig, _ bool, _ idtools.IdentityMapping, _ string) (executor.Executor, error) {
  12. return &winExecutor{}, nil
  13. }
  14. type winExecutor struct{}
  15. func (w *winExecutor) Run(ctx context.Context, id string, root executor.Mount, mounts []executor.Mount, process executor.ProcessInfo, started chan<- struct{}) (err error) {
  16. return errors.New("buildkit executor not implemented for windows")
  17. }
  18. func (w *winExecutor) Exec(ctx context.Context, id string, process executor.ProcessInfo) error {
  19. return errors.New("buildkit executor not implemented for windows")
  20. }
  21. func getDNSConfig(config.DNSConfig) *oci.DNSConfig {
  22. return nil
  23. }