buildkit/worker/worker.go

23 lines
384 B
Go
Raw Normal View History

package worker
import (
"io"
"github.com/tonistiigi/buildkit_poc/cache"
"golang.org/x/net/context"
)
type Meta struct {
Args []string
Env []string
User string
Cwd string
Tty bool
// DisableNetworking bool
}
type Worker interface {
// TODO: add stdout/err
Exec(ctx context.Context, meta Meta, mounts map[string]cache.Mountable, stdout, stderr io.WriteCloser) error
}