Versions in this module Expand all Collapse all v0 v0.0.1 Oct 9, 2026 Changes in this version + const KindContainer + const KindLocal + const KindRemote + var ErrOutside = errors.New("path is outside the workspace") + func Read(w Workspace, name string, max int64) ([]byte, error) + type Command struct + Args []string + Dir string + Env []string + Stdin []byte + Stream io.Writer + Timeout time.Duration + type Descriptor struct + Kind string + Ref string + Root string + type Local struct + func NewLocal(dir string, env []string) (*Local, error) + func (l *Local) Close() error + func (l *Local) Descriptor() Descriptor + func (l *Local) Env() []string + func (l *Local) Exec(ctx context.Context, c Command) (*Output, error) + func (l *Local) FS() fs.FS + func (l *Local) Real() string + func (l *Local) Remove(_ context.Context, name string) error + func (l *Local) Root() string + func (l *Local) Start(ctx context.Context, c Command) (Process, error) + func (l *Local) WriteFile(_ context.Context, name string, data []byte, perm fs.FileMode) error + type Output struct + ExitCode int + Stderr []byte + Stdout []byte + TimedOut bool + type Process interface + Close func() error + Signal func(sig os.Signal) error + Stdin func() io.WriteCloser + Stdout func() io.ReadCloser + Wait func() (status int, err error) + func Start(ctx context.Context, ws Workspace, cmd Command) (Process, error) + type Starter interface + Start func(ctx context.Context, cmd Command) (Process, error) + type Workspace interface + Close func() error + Descriptor func() Descriptor + Env func() []string + Exec func(ctx context.Context, cmd Command) (*Output, error) + FS func() fs.FS + Remove func(ctx context.Context, name string) error + Root func() string + WriteFile func(ctx context.Context, name string, data []byte, perm fs.FileMode) error