Documentation
¶
Overview ¶
Package health provides health check functionality for the flightctl-agent. Used by greenboot to verify agent health during boot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChecker ¶
func NewChecker(log *log.PrefixLogger, opts ...Option) *checker
NewChecker creates a new health checker with the given options.
Types ¶
type Option ¶
type Option func(*checker)
Option is a functional option for configuring the checker.
func WithOutput ¶
WithOutput sets the output writer for messages.
func WithStabilityWindow ¶
WithStabilityWindow sets the duration the service must remain stable.
func WithSystemdClient ¶
WithSystemdClient sets a custom systemd client (for testing).
func WithTimeout ¶
WithTimeout sets the timeout for waiting for the service to become active.
Click to show internal directories.
Click to hide internal directories.