2018-05-15 18:21:08 -04:00
|
|
|
package buildkit
|
|
|
|
|
|
|
|
import (
|
2018-05-25 18:18:44 -04:00
|
|
|
"context"
|
2018-05-15 18:21:08 -04:00
|
|
|
"errors"
|
|
|
|
|
2019-06-05 21:36:33 -04:00
|
|
|
"github.com/docker/docker/daemon/config"
|
2021-04-05 20:24:47 -04:00
|
|
|
"github.com/docker/docker/libnetwork"
|
2021-05-27 20:15:56 -04:00
|
|
|
"github.com/docker/docker/pkg/idtools"
|
2018-05-15 18:21:08 -04:00
|
|
|
"github.com/moby/buildkit/executor"
|
2019-06-05 21:36:33 -04:00
|
|
|
"github.com/moby/buildkit/executor/oci"
|
2018-05-15 18:21:08 -04:00
|
|
|
)
|
|
|
|
|
2020-10-09 13:20:48 -04:00
|
|
|
func newExecutor(_, _ string, _ libnetwork.NetworkController, _ *oci.DNSConfig, _ bool, _ *idtools.IdentityMapping, _ string) (executor.Executor, error) {
|
2018-05-25 18:18:44 -04:00
|
|
|
return &winExecutor{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type winExecutor struct {
|
|
|
|
}
|
|
|
|
|
2020-11-12 21:14:57 -05:00
|
|
|
func (w *winExecutor) Run(ctx context.Context, id string, root executor.Mount, mounts []executor.Mount, process executor.ProcessInfo, started chan<- struct{}) (err error) {
|
2020-07-20 01:18:46 -04:00
|
|
|
return errors.New("buildkit executor not implemented for windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (w *winExecutor) Exec(ctx context.Context, id string, process executor.ProcessInfo) error {
|
2018-05-25 18:18:44 -04:00
|
|
|
return errors.New("buildkit executor not implemented for windows")
|
2018-05-15 18:21:08 -04:00
|
|
|
}
|
2019-06-05 21:36:33 -04:00
|
|
|
|
|
|
|
func getDNSConfig(config.DNSConfig) *oci.DNSConfig {
|
|
|
|
return nil
|
|
|
|
}
|