{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package configuration\n\nPackage configuration provides interfaces and implementations for managing runtime configuration of O² Control components and detectors.\n\n## Types\n\n```go\ntype RuntimeService interface {\n\tGetRuntimeEntry(component string, key string) (string, error)\n\tGetRuntimeEntries(component string) (map[string]string, error)\n\tSetRuntimeEntry(component string, key string, value string) error\n\tListRuntimeEntries(component string) ([]string, error)\n}\n```\n\n```go\ntype Service interface {\n\tRuntimeService\n\tNewRunNumber() (runNumber uint32, err error)\n\tGetDefaults() map[string]string\n\tGetVars() map[string]string\n\tInvalidateComponentTemplateCache()\n\tGetComponentConfiguration(query *componentcfg.Query) (payload string, err error)\n\tGetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)\n\tGetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)\n\n\t// getAll == false should skip TRG in the list\n\tListDetectors(getAll bool) (detectors []string, err error)\n\tGetHostInventory(detector string) (hosts []string, err error)\n\tGetDetectorsInventory() (inventory map[string][]string, err error)\n\tListComponents() (components []string, err error)\n\tListComponentEntries(query *componentcfg.EntriesQuery) (entries []string, err error)\n\tResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)\n\n\tImportComponentConfiguration(query *componentcfg.Query, payload string, newComponent bool) (existingComponentUpdated bool, existingEntryUpdated bool, err error)\n\n\tGetDetectorForHost(hostname string) (string, error)\n\tGetDetectorsForHosts(hosts []string) ([]string, error)\n\tGetCRUCardsForHost(hostname string) ([]string, error)\n\tGetEndpointsForCRUCard(hostname, cardSerial string) ([]string, error)\n\tGetLinkIDsForCRUEndpoint(host string, cruId string, endpoint string, onlyEnabled bool) (ids []string, err error)\n\tGetAliasedLinkIDsForDetector(detector string, onlyEnabled bool) (aliasedLinkIds []string, err error)\n\n\tRawGetRecursive(path string) (string, error)\n}\n```\n\n","path":"github.com/AliceO2Group/Control/configuration","name":"configuration","synopsis":"Package configuration provides interfaces and implementations for managing runtime configuration of O² Control components and detectors.","isRedistributable":true}
