executor_windows.go 945 B

12345678910111213141516171819202122232425262728293031
  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.NetworkController, _ *oci.DNSConfig, _ bool, _ *idtools.IdentityMapping, _ string) (executor.Executor, error) {
  12. return &winExecutor{}, nil
  13. }
  14. type winExecutor struct {
  15. }
  16. func (w *winExecutor) Run(ctx context.Context, id string, root executor.Mount, mounts []executor.Mount, process executor.ProcessInfo, started chan<- struct{}) (err error) {
  17. return errors.New("buildkit executor not implemented for windows")
  18. }
  19. func (w *winExecutor) Exec(ctx context.Context, id string, process executor.ProcessInfo) error {
  20. return errors.New("buildkit executor not implemented for windows")
  21. }
  22. func getDNSConfig(config.DNSConfig) *oci.DNSConfig {
  23. return nil
  24. }