Versions in this module Expand all Collapse all v3 v3.0.35 Oct 7, 2026 Changes in this version type Owner + ChannelScope string + SessionScope string type Supervisor + func (s *Supervisor) List(owner Owner) ([]Status, error) + func (s *Supervisor) ReadStderr(ctx context.Context, owner Owner, handle string, request ReadRequest) (ReadResult, error) + func (s *Supervisor) ReadStdout(ctx context.Context, owner Owner, handle string, request ReadRequest) (ReadResult, error) v3.0.34 Oct 7, 2026 Changes in this version + const MaxArgumentBytes + const MaxArguments + const MaxClientKeyBytes + const MaxEnvironmentBytes + const MaxEnvironmentEntries + const MaxOutputBufferBytes + const MaxOwnerFieldBytes + const MaxRuntimeMilliseconds + const MaxStdinBytes + var ErrClosed = errors.New("PROCESS_SUPERVISOR_CLOSED") + var ErrInvalidRequest = errors.New("PROCESS_INVALID_REQUEST") + var ErrLaunchConflict = errors.New("PROCESS_LAUNCH_CONFLICT") + var ErrNotFound = errors.New("PROCESS_NOT_FOUND") + var ErrPermissionDenied = errors.New("PROCESS_PERMISSION_DENIED") + var ErrRevoked = errors.New("PROCESS_OWNER_REVOKED") + var ErrSecretUnavailable = errors.New("PROCESS_SECRET_UNAVAILABLE") + type ExitResult struct + ExitCode *int + TerminationReason string + type Options struct + BaseEnvironment []string + GracePeriod time.Duration + Permission func(context.Context, Owner) error + Secrets SecretResolver + type Owner struct + EnvironmentScope string + PluginInstanceID string + UserScope string + func (o Owner) ValidForHost() bool + type ReadRequest struct + Cursor uint64 + MaxBytes int + type ReadResult struct + Cursor uint64 + Data []byte + DroppedBytes uint64 + EOF bool + ProcessExit bool + StreamGap bool + type ResourceLimits struct + MaxRuntimeMS int + OutputBufferBytes int + type SecretResolver func(context.Context, Owner, string) (string, error) + type StartRequest struct + Argv []string + ClientKey string + Cwd string + Environment map[string]string + EnvironmentRemovals []string + Limits ResourceLimits + Program string + SecretReferences map[string]string + type Status struct + ClientKey string + ExitCode *int + Handle string + State string + TerminationReason string + type Stream string + const Stderr + const Stdout + type Supervisor struct + func NewSupervisor(options Options) (*Supervisor, error) + func (s *Supervisor) Attach(owner Owner, clientKey string) (Status, error) + func (s *Supervisor) Close(ctx context.Context, owner Owner, handle string) error + func (s *Supervisor) CloseStdin(owner Owner, handle string) error + func (s *Supervisor) GetStatus(owner Owner, handle string) (Status, error) + func (s *Supervisor) Kill(owner Owner, handle string) error + func (s *Supervisor) Read(ctx context.Context, owner Owner, handle string, stream Stream, ...) (ReadResult, error) + func (s *Supervisor) RestorePlugin(pluginInstanceID, environmentScope string) error + func (s *Supervisor) Revoke(ctx context.Context, owner Owner) error + func (s *Supervisor) RevokePlugin(ctx context.Context, pluginInstanceID, environmentScope string) error + func (s *Supervisor) Shutdown(ctx context.Context) error + func (s *Supervisor) Start(ctx context.Context, owner Owner, request StartRequest) (Status, error) + func (s *Supervisor) Terminate(ctx context.Context, owner Owner, handle string) error + func (s *Supervisor) Wait(ctx context.Context, owner Owner, handle string) (ExitResult, error) + func (s *Supervisor) WriteStdin(ctx context.Context, owner Owner, handle string, data []byte) (int, error)