registry

package
v1.2.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package registry provides component registration and management for fleetint, allowing fine-grained control over which components are enabled.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllComponentNames

func AllComponentNames() []string

AllComponentNames returns a list of all available component names

Types

type Component

type Component struct {
	Name     string
	InitFunc components.InitFunc
	// EnabledByDefault indicates if this component should be enabled by default
	EnabledByDefault bool
}

Component represents a health monitoring component with its name and initialization function

func All

func All() []Component

All returns all available components with their default enable/disable state

func GetComponent

func GetComponent(name string) *Component

GetComponent returns a component by name, or nil if not found

func GetEnabledComponents

func GetEnabledComponents() []Component

GetEnabledComponents returns only the components that should be enabled by default

Jump to

Keyboard shortcuts

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