Versions in this module Expand all Collapse all v1 v1.0.0 Sep 16, 2026 Changes in this version + const DefaultDeadline + const DefaultInvokeDeadlineMS + const DefaultMaxOutputBytes + const DefaultMaxStderrBytes + const EnvSubprocessAllow + func ApplyGrants(d *modproto.Descriptor, req *modproto.Request, policy GrantPolicy) + func DescribeInstalled(ctx context.Context, home, id string) (*modproto.Descriptor, error) + func GrantBinaries(d *modproto.Descriptor, req *modproto.Request) (missing []string) + func Install(ctx context.Context, home, binaryPath string) (string, error) + func ModulesDir(home string) string + func NewRequestID() (string, error) + func Remove(home, id string) error + func ResolveArtifact(req *modproto.Request, a modproto.Artifact) (string, error) + func ResolveBinaries(declared []string) (resolved map[string]string, missing []string) + func StageArtifact(req *modproto.Request, a modproto.Artifact, storeDir string) (string, error) + func WithinRoot(root, path string) bool + type GrantPolicy struct + Credentials []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + func GrantAll() GrantPolicy + func GrantNothing() GrantPolicy + type PartialInstall struct + Module string + Warnings []string + func (e *PartialInstall) Error() string + type Result struct + Duration time.Duration + Envelope *modproto.Envelope + ExitCode int + Stderr string + Truncated bool + Warnings []string + type Runner struct + Binary string + MaxOutputBytes int + MaxStderrBytes int + ModuleID string + func (r *Runner) Describe(ctx context.Context) (*modproto.Descriptor, *Result, error) + func (r *Runner) Invoke(ctx context.Context, d *modproto.Descriptor, req *modproto.Request) (*Result, error)