responsefleet

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: 16 Imported by: 0

Documentation

Overview

Package responsefleet dispatches governed response commands through the durable fleet work lane.

Index

Constants

This section is empty.

Variables

View Source
var ErrEndpointOutcomeUnknown = errors.New("endpoint response execution outcome unknown")

Functions

This section is empty.

Types

type Config

type Config struct {
	CommandTTL      time.Duration
	PollInterval    time.Duration
	AgentStaleAfter time.Duration
}

Config bounds command authorization and endpoint-result waiting.

type Executor

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

Executor is the production response.Executor adapter over signed, leased fleet work orders.

func New

func New(work workService, agents ports.FleetAgentStore, bindings ports.TelemetryAssetBindingLister, signer ports.ResponseCommandSigner, clock ports.Clock, config Config) (*Executor, error)

func (*Executor) Execute

func (*Executor) Halt

func (e *Executor) Halt(ctx context.Context, tenantID shared.ID, generation int64) error

Halt cancels every lower-generation effect order before durably issuing highest-priority signed halt commands. Heartbeats independently repeat the monotonic fence for agents that reconnect later.

func (*Executor) Identity

func (*Executor) Identity() string

func (*Executor) ResolveAgent

func (e *Executor) ResolveAgent(ctx context.Context, tenantID shared.ID, target responsesaga.TargetFingerprint) (shared.ID, error)

ResolveAgent chooses the single active, fresh, response-capable agent authoritatively bound to the process asset. A missing or ambiguous route fails closed.

func (*Executor) Supports

func (*Executor) Supports(kind rdom.Kind) bool

Supports limits live fleet execution to the process response implemented by the endpoint actuator.

type ObserverDispatcher

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

func NewObserverDispatcher

func NewObserverDispatcher(work workService, agents ports.FleetAgentStore, bindings ports.ResponseObserverBindingStore, clock ports.Clock, ttl, staleAfter time.Duration) (*ObserverDispatcher, error)

func (*ObserverDispatcher) EnsureObservation

func (*ObserverDispatcher) SetTargetEvidenceReceiptBuilder

func (d *ObserverDispatcher) SetTargetEvidenceReceiptBuilder(builder *TargetEvidenceReceiptBuilder)

type TargetEvidenceReceiptBuilder

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

Jump to

Keyboard shortcuts

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