cacheproxy

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: GPL-3.0 Imports: 2 Imported by: 1 module, 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Implements a cache proxy Service for the configuration system. Only DetectorForHost/DetectorsForHosts are cached, all other calls are passed through.

func NewService

func NewService(base configuration.Service) (*Service, error)

func (Service) GetAliasedLinkIDsForDetector added in v1.28.0

func (s Service) GetAliasedLinkIDsForDetector(detector string, onlyEnabled bool) ([]string, error)

func (Service) GetAndProcessComponentConfiguration

func (s Service) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)

func (Service) GetCRUCardsForHost

func (s Service) GetCRUCardsForHost(hostname string) ([]string, error)

func (Service) GetComponentConfiguration

func (s Service) GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)

func (Service) GetComponentConfigurationWithLastIndex

func (s Service) GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)

func (Service) GetDefaults

func (s Service) GetDefaults() map[string]string

func (Service) GetDetectorForHost

func (s Service) GetDetectorForHost(hostname string) (string, error)

func (Service) GetDetectorsForHosts

func (s Service) GetDetectorsForHosts(hosts []string) ([]string, error)

func (Service) GetDetectorsInventory

func (s Service) GetDetectorsInventory() (inventory map[string][]string, err error)

func (Service) GetEndpointsForCRUCard

func (s Service) GetEndpointsForCRUCard(hostname, cardSerial string) ([]string, error)

func (Service) GetHostInventory

func (s Service) GetHostInventory(detector string) (hosts []string, err error)

func (Service) GetLinkIDsForCRUEndpoint added in v1.28.0

func (s Service) GetLinkIDsForCRUEndpoint(host string, cruId string, endpoint string, onlyEnabled bool) (ids []string, err error)

func (Service) GetRuntimeEntries added in v1.4.0

func (s Service) GetRuntimeEntries(component string) (map[string]string, error)

func (Service) GetRuntimeEntry

func (s Service) GetRuntimeEntry(component string, key string) (string, error)

func (Service) GetVars

func (s Service) GetVars() map[string]string

func (Service) ImportComponentConfiguration

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

func (Service) InvalidateComponentTemplateCache added in v1.0.0

func (s Service) InvalidateComponentTemplateCache()

func (Service) ListComponentEntries

func (s Service) ListComponentEntries(query *componentcfg.EntriesQuery) (entries []string, err error)

func (Service) ListComponents

func (s Service) ListComponents() (components []string, err error)

func (Service) ListDetectors

func (s Service) ListDetectors(getAll bool) (detectors []string, err error)

func (Service) ListRuntimeEntries

func (s Service) ListRuntimeEntries(component string) ([]string, error)

func (Service) NewRunNumber

func (s Service) NewRunNumber() (runNumber uint32, err error)

func (Service) RawGetRecursive

func (s Service) RawGetRecursive(path string) (string, error)

func (Service) ResolveComponentQuery

func (s Service) ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)

func (Service) SetRuntimeEntry

func (s Service) SetRuntimeEntry(component string, key string, value string) error

Jump to

Keyboard shortcuts

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