probe

package
v0.64.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: BSD-2-Clause Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandPublisher

type CommandPublisher interface {
	Publish(ctx context.Context, operation string, payload interface{}) error
}

CommandPublisher publishes a single serialised command to the request topic.

func NewCommandPublisher

func NewCommandPublisher(sender cdb.CommandObjectSender) CommandPublisher

NewCommandPublisher creates a CommandPublisher backed by the given sender.

type ConfigProvider

type ConfigProvider interface {
	Get(ctx context.Context) ([]agentv1.Config, error)
}

ConfigProvider lists all known Config CRs.

type HealthcheckRunner

type HealthcheckRunner interface {
	Run(ctx context.Context) error
}

HealthcheckRunner executes one liveness check tick: publishes create-task + update-frontmatter per Config CR.

func NewHealthcheckRunner

func NewHealthcheckRunner(
	configProvider ConfigProvider,
	publisher CommandPublisher,
	branch base.Branch,
	targetVault string,
) HealthcheckRunner

NewHealthcheckRunner creates a HealthcheckRunner.

targetVault is the fallback vault this executor owns (TASK_VAULT, defaulting to VAULT_NAME). Each Config's spec.targetVault overrides it when set; the resolved value is stamped onto BOTH commands one tick publishes — the create-task and the update-frontmatter that follows it — and the two need it for different reasons. The fallback is what every Config that does not set spec.targetVault keeps. The override exists because every executor probes every Config: stamping only the executor's own vault writes one logical probe once per executor, each copy in a different vault and a different phase.

On the create, the controller substitutes routing.LegacyDefaultVault ("openclaw") when TargetVault is empty and skips the write as cross-vault, so an unstamped probe is silently dropped on every vault but openclaw.

On the update, the stamp is what lets the controller tell a genuine miss from another vault's command: a stamped miss is the controller's to report as a failure, an unstamped one has to stay a skip because every controller attempts it.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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