Help us shape the future of Go! Take the 2026 Go Developer Survey

probe

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

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,
) HealthcheckRunner

NewHealthcheckRunner creates a HealthcheckRunner.

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