Versions in this module Expand all Collapse all v2 v2.1.1 Oct 6, 2026 v2.1.0 Oct 6, 2026 Changes in this version + const DefaultDeadline + const DefaultInvokeDeadlineMS + const DefaultMaxOutputBytes + const DefaultMaxStderrBytes + const DisabledMarker + const EnvSubprocessAllow + const ManifestName + const MaxErrorText + func ApplyGrants(d *modproto.Descriptor, req *modproto.Request, policy GrantPolicy) + func BinaryName(id string) string + func BinaryPath(home, id string) (string, error) + func BoundText(s string, max int) string + func CheckID(id string) error + func DescribeInstalled(ctx context.Context, home, id string) (*modproto.Descriptor, error) + func FileDigest(path string) (string, error) + func GrantBinaries(d *modproto.Descriptor, req *modproto.Request) (missing []string) + func Install(ctx context.Context, home, binaryPath string) (string, error) + func InstallDir(home, id string) (string, error) + func InvalidateDescribeCache() + 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 ScratchDir(home, id string) string + func StateDir(home, id string) string + func ValidID(id string) bool + func ValidRootName(name string) bool + func WithinRoot(root, path string) bool + type GrantPolicy struct + AllowDeclared bool + Credentials []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + func GrantAll() GrantPolicy + func GrantDeclared() GrantPolicy + func GrantNothing() GrantPolicy + func GrantsFor(approved bool) GrantPolicy + type Manifest struct + Dir string + ID string + SHA256 string + func ReadManifest(dir string) (*Manifest, error) + 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 + Digest string + MaxOutputBytes int + MaxStderrBytes int + ModuleID string + WorkDir string + func NewRunner(home, id string) (*Runner, error) + func (r *Runner) Describe(ctx context.Context) (*modproto.Descriptor, *Result, error) + func (r *Runner) DescribeCached(ctx context.Context) (*modproto.Descriptor, *Result, error) + func (r *Runner) Invoke(ctx context.Context, d *modproto.Descriptor, req *modproto.Request) (*Result, error) Other modules containing this package github.com/xibodev/compa