Documentation
¶
Overview ¶
Package responseexecute applies control-plane-signed response commands behind an endpoint-local journal.
Index ¶
- Variables
- type Actuator
- type ActuatorOutcome
- type Service
- func (s *Service) AcknowledgeResult(ctx context.Context, attemptKey, commandDigest string) error
- func (s *Service) Execute(ctx context.Context, command fleetagent.ResponseCommand, leaseID string, ...) (fleetagent.ResponseExecutionResult, error)
- func (s *Service) ExecuteHaltCommand(ctx context.Context, command fleetagent.ResponseHaltCommand, leaseID string, ...) error
- func (s *Service) Halt(ctx context.Context, generation int64) error
- func (s *Service) PendingResults(ctx context.Context) ([]fleetagent.ResponseExecutionJournalEntry, error)
Constants ¶
This section is empty.
Variables ¶
var ErrExecutionOutcomeUnknown = errors.New("response execution outcome unknown")
Functions ¶
This section is empty.
Types ¶
type Actuator ¶
type Actuator = ports.ResponseActuator
Actuator and its outcome remain aliases for compatibility; the endpoint side-effect port lives in ports.
type ActuatorOutcome ¶
type ActuatorOutcome = ports.ResponseActuatorOutcome
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AcknowledgeResult ¶
AcknowledgeResult durably closes one exact outbox item after the control plane accepts it.
func (*Service) Execute ¶
func (s *Service) Execute(ctx context.Context, command fleetagent.ResponseCommand, leaseID string, leaseUntil time.Time) (fleetagent.ResponseExecutionResult, error)
func (*Service) ExecuteHaltCommand ¶
func (s *Service) ExecuteHaltCommand(ctx context.Context, command fleetagent.ResponseHaltCommand, leaseID string, leaseUntil time.Time) error
ExecuteHaltCommand verifies a separately signed, addressed halt command before durably raising the endpoint-local monotonic fence. It carries no production-changing action payload.
func (*Service) Halt ¶
Halt durably latches the local execution fence before returning. Clearing the latch requires a future separately governed resume protocol; an ordinary command cannot lower or clear it.
func (*Service) PendingResults ¶
func (s *Service) PendingResults(ctx context.Context) ([]fleetagent.ResponseExecutionJournalEntry, error)
PendingResults returns terminal local outcomes that the control plane has not acknowledged yet.