configuration

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: GPL-3.0 Imports: 1 Imported by: 2 modules, 2 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

Overview

Package configuration provides interfaces and implementations for managing runtime configuration of O² Control components and detectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeService added in v0.19.90

type RuntimeService interface {
	GetRuntimeEntry(component string, key string) (string, error)
	GetRuntimeEntries(component string) (map[string]string, error)
	SetRuntimeEntry(component string, key string, value string) error
	ListRuntimeEntries(component string) ([]string, error)
}

type Service added in v0.19.90

type Service interface {
	RuntimeService
	NewRunNumber() (runNumber uint32, err error)
	GetDefaults() map[string]string
	GetVars() map[string]string
	InvalidateComponentTemplateCache()
	GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)
	GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)
	GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)

	// getAll == false should skip TRG in the list
	ListDetectors(getAll bool) (detectors []string, err error)
	GetHostInventory(detector string) (hosts []string, err error)
	GetDetectorsInventory() (inventory map[string][]string, err error)
	ListComponents() (components []string, err error)
	ListComponentEntries(query *componentcfg.EntriesQuery) (entries []string, err error)
	ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)

	ImportComponentConfiguration(query *componentcfg.Query, payload string, newComponent bool) (existingComponentUpdated bool, existingEntryUpdated bool, err error)

	GetDetectorForHost(hostname string) (string, error)
	GetDetectorsForHosts(hosts []string) ([]string, error)
	GetCRUCardsForHost(hostname string) ([]string, error)
	GetEndpointsForCRUCard(hostname, cardSerial string) ([]string, error)
	GetLinkIDsForCRUEndpoint(host string, cruId string, endpoint string, onlyEnabled bool) (ids []string, err error)
	GetAliasedLinkIDsForDetector(detector string, onlyEnabled bool) (aliasedLinkIds []string, err error)

	RawGetRecursive(path string) (string, error)
}

Directories

Path Synopsis
Package configuration defines the Source interface as the main access point to O² Configuration backends.
Package configuration defines the Source interface as the main access point to O² Configuration backends.
Package componentcfg provides component configuration management functionality, including query handling and template processing for O² components.
Package componentcfg provides component configuration management functionality, including query handling and template processing for O² components.
Package template provides template processing functionality for configuration files, including custom field handling and template execution.
Package template provides template processing functionality for configuration files, including custom field handling and template execution.

Jump to

Keyboard shortcuts

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