agent

package
v0.0.0-...-0bdfc0f Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent is the core component that runs on each node. It periodically pulls the desired state from the config store and reconciles it with the actual state of running Firecracker microVMs.

func New

func New(cfg config.AgentConfig, s store.Store, logger *slog.Logger) *Agent

New creates a new Agent with all its dependencies.

func (*Agent) MetricsText

func (a *Agent) MetricsText() string

MetricsText returns the Prometheus text exposition for agent runtime metrics.

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

Run starts the agent's reconciliation loop. It blocks until the context is cancelled (e.g., on SIGTERM).

func (*Agent) Status

func (a *Agent) Status() map[string]any

Status returns a summary of the agent's current state. Implements api.StatusProvider.

Jump to

Keyboard shortcuts

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