responseobserver

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package responseobserver composes the agent-side response-observation workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

API is the fleet transport required by independent response observation.

type Runtime

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

Runtime owns the concrete durable state and fleet adapters used by one agent process.

func New

func New(store *fleetclient.CredentialStore, api API, delay time.Duration) (*Runtime, error)

New constructs the response-observation runtime using the system clock.

func NewWithClock

func NewWithClock(store *fleetclient.CredentialStore, api API, delay time.Duration, clock ports.Clock) (*Runtime, error)

NewWithClock constructs the response-observation runtime with an injected clock for tests.

func (*Runtime) Observe

func (r *Runtime) Observe(ctx context.Context, credential fleetclient.Credential, order fleetclient.Order) error

Observe executes one server-addressed response-observation order.

Jump to

Keyboard shortcuts

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