Versions in this module Expand all Collapse all v0 v0.0.54 Dec 5, 2026 v0.0.53 Dec 3, 2026 Changes in this version + const ChunkBytes + const DefaultFileCallTimeout + const DefaultMaxFileBytes + const DefaultMaxOutputBytes + var ErrLimitExceeded = errors.New("executor: response exceeds client limit") + var ErrOutcomeUnknown = errors.New("executor: command outcome unknown") + var ErrStorageTimeout = errors.New("workspace storage did not respond in time; a write may still have completed") + func Keepalive(interval, timeout time.Duration) grpc.DialOption + func NewClient(target string, creds credentials.TransportCredentials, opts ...grpc.DialOption) (*grpc.ClientConn, error) + type Option func(*limits) + func WithFileCallTimeout(d time.Duration) Option + func WithMaxFileBytes(n int) Option + func WithMaxOutputBytes(n int) Option + type RequestContextFunc func(context.Context) (*executorv1.RequestContext, error) + type Runner struct + func NewRunner(conn grpc.ClientConnInterface, root string, rc RequestContextFunc, ...) *Runner + func (r *Runner) BoundWorkspaceRoot() string + func (r *Runner) Run(ctx context.Context, command string) (tool.CommandResult, error) + type Workspace struct + func NewWorkspace(conn grpc.ClientConnInterface, root string, rc RequestContextFunc, ...) *Workspace + func (w *Workspace) AuthorityResourcePath(path string) (target, workspace string, err error) + func (w *Workspace) CopyFile(ctx context.Context, source string, destination string) (tool.FileVersion, error) + func (w *Workspace) CreateFile(ctx context.Context, path string, data []byte) (tool.FileVersion, error) + func (w *Workspace) Glob(ctx context.Context, pattern string) ([]string, error) + func (w *Workspace) Grep(ctx context.Context, pattern, pathGlob string) ([]tool.GrepMatch, error) + func (w *Workspace) Read(ctx context.Context, path string) ([]byte, error) + func (w *Workspace) ReadDir(ctx context.Context, path string) ([]tool.FileInfo, error) + func (w *Workspace) ReadVersion(ctx context.Context, path string) ([]byte, tool.FileVersion, error) + func (w *Workspace) Remove(ctx context.Context, path string) error + func (w *Workspace) Rename(ctx context.Context, oldPath, newPath string) error + func (w *Workspace) ReplaceFile(ctx context.Context, path string, old tool.FileVersion, data []byte) (tool.FileVersion, error) + func (w *Workspace) Root() string + func (w *Workspace) Stat(ctx context.Context, path string) (tool.FileInfo, error)