controller

package
v0.0.0-...-36c55c0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package controller provides the control plane process components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentHeartbeat

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

ComponentHeartbeat writes ComponentRegistration to the registry KV on a configurable interval.

func NewComponentHeartbeat

func NewComponentHeartbeat(
	logger *slog.Logger,
	registryKV jetstream.KeyValue,
	hostname string,
	version string,
	componentType string,
	processProvider process.Provider,
	interval time.Duration,
	thresholds process.ConditionThresholds,
	subComponents map[string]job.SubComponentInfo,
) *ComponentHeartbeat

NewComponentHeartbeat creates a heartbeat writer for a non-agent component.

func (*ComponentHeartbeat) Start

func (h *ComponentHeartbeat) Start(
	ctx context.Context,
)

Start begins writing heartbeats. It writes an initial registration immediately, then refreshes on each tick. On context cancellation it deregisters and returns.

Directories

Path Synopsis
api
Package api provides the REST API server and handler registration.
Package api provides the REST API server and handler registration.
agent
Package agent provides agent-related API handlers.
Package agent provides agent-related API handlers.
agent/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
audit
Package audit provides audit log API handlers.
Package audit provides audit log API handlers.
audit/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
common/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
facts
Package facts provides fact key discovery API handlers.
Package facts provides fact key discovery API handlers.
facts/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
file
Package file provides file management API handlers.
Package file provides file management API handlers.
file/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
file/mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
health
Package health provides health check API handlers.
Package health provides health check API handlers.
health/gen
Package gen contains generated code for the health API.
Package gen contains generated code for the health API.
health/mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.
job
Package job provides job queue API handlers.
Package job provides job queue API handlers.
job/gen
Package gen contains generated code for the job API.
Package gen contains generated code for the job API.
node
Package node provides node-related API handlers.
Package node provides node-related API handlers.
node/certificate
Package certificate provides certificate-related API handlers.
Package certificate provides certificate-related API handlers.
node/certificate/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
node/command
Package command provides command execution API handlers.
Package command provides command execution API handlers.
node/command/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
node/docker
Package container provides container-related API handlers.
Package container provides container-related API handlers.
node/docker/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
node/file
Package file provides node-targeted file deploy API handlers.
Package file provides node-targeted file deploy API handlers.
node/file/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.
node/gen
Package gen contains generated code for the node API.
Package gen contains generated code for the node API.
node/hostname
Package hostname provides hostname-related API handlers.
Package hostname provides hostname-related API handlers.
node/hostname/gen
Package gen contains generated code for the hostname API.
Package gen contains generated code for the hostname API.
node/log
Package log provides log management API handlers.
Package log provides log management API handlers.
node/log/gen
Package gen contains generated code for the log API.
Package gen contains generated code for the log API.
node/network
Package network provides network-related API handlers.
Package network provides network-related API handlers.
node/network/gen
Package gen contains generated code for the network API.
Package gen contains generated code for the network API.
node/ntp
Package ntp provides NTP-related API handlers.
Package ntp provides NTP-related API handlers.
node/ntp/gen
Package gen contains generated code for the NTP API.
Package gen contains generated code for the NTP API.
node/package
Package packageapi provides package-management-related API handlers.
Package packageapi provides package-management-related API handlers.
node/package/gen
Package gen contains generated code for the package management API.
Package gen contains generated code for the package management API.
node/power
Package power provides power management API handlers.
Package power provides power management API handlers.
node/power/gen
Package gen contains generated code for the Power API.
Package gen contains generated code for the Power API.
node/process
Package process provides process management API handlers.
Package process provides process management API handlers.
node/process/gen
Package gen contains generated code for the process API.
Package gen contains generated code for the process API.
node/schedule
Package schedule provides schedule-related API handlers.
Package schedule provides schedule-related API handlers.
node/schedule/gen
Package gen contains generated code for the schedule API.
Package gen contains generated code for the schedule API.
node/service
Package service provides service-related API handlers.
Package service provides service-related API handlers.
node/service/gen
Package gen contains generated code for the service API.
Package gen contains generated code for the service API.
node/sysctl
Package sysctl provides sysctl-related API handlers.
Package sysctl provides sysctl-related API handlers.
node/sysctl/gen
Package gen contains generated code for the sysctl API.
Package gen contains generated code for the sysctl API.
node/timezone
Package timezone provides timezone-related API handlers.
Package timezone provides timezone-related API handlers.
node/timezone/gen
Package gen contains generated code for the Timezone API.
Package gen contains generated code for the Timezone API.
node/user
Package user provides user and group API handlers.
Package user provides user and group API handlers.
node/user/gen
Package gen contains generated code for the user and group API.
Package gen contains generated code for the user and group API.
ui
Package ui provides the HTTP handler for serving the embedded React UI.
Package ui provides the HTTP handler for serving the embedded React UI.
Package notify provides a pluggable condition notification system that watches the registry KV bucket for component condition transitions and dispatches events via configurable notifiers.
Package notify provides a pluggable condition notification system that watches the registry KV bucket for component condition transitions and dispatches events via configurable notifiers.
mocks
Package mocks provides mock implementations for testing.
Package mocks provides mock implementations for testing.

Jump to

Keyboard shortcuts

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