Help us shape the future of Go! Take the 2026 Go Developer Survey

responseactuator

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package responseactuator executes the deliberately narrow endpoint response protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	// contains filtered or unexported fields
}

Actuator maps a validated protocol command to a direct kernel/process API. It never executes the command's display argv and never invokes a shell.

func New

func New(processes processController) (*Actuator, error)

func (*Actuator) ExecuteResponse

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry pins process identities as pidfds when their durable eBPF observations pass through the agent. It deliberately does not discover arbitrary /proc entries: without the original boot/start observation, a bare PID cannot be bound to a ProcessEntityID safely.

func NewRegistry

func NewRegistry() (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

func (*Registry) ObserveProcess

func (r *Registry) ObserveProcess(assetID, bootID shared.ID, event detection.ProcessEvent)

ObserveProcess is called only after the canonical process observation is durable in the telemetry WAL.

func (*Registry) RestartProcess

func (r *Registry) RestartProcess(ctx context.Context, entityID shared.ID) (alreadyRestarted bool, err error)

RestartProcess launches an executable only after this registry sent SIGTERM to its exact prior process identity and the pidfd reports that identity has exited. A successful return means exec started; it does not assert a telemetry or application-health post-condition.

func (*Registry) StopProcess

func (r *Registry) StopProcess(ctx context.Context, entityID shared.ID) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL