centralconfig

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package centralconfig implements an interface to deal with the central configuration.

Package centralconfig implements an interface to deal with the central configuration.

Index

Constants

View Source
const CentralConfigFileName = "central_config.yaml"

CentralConfigFileName is the name of the central config file

Variables

This section is empty.

Functions

This section is empty.

Types

type CentralConfig

type CentralConfig interface {
	// GetCentralConfigEntry reads the central configuration and
	// returns the value for the given key. The value is unmarshalled
	// into the out parameter. The out parameter must be a non-nil
	// pointer to a value.  If the key does not exist, the out parameter
	// is not modified and an error is returned.
	GetCentralConfigEntry(key string, out interface{}) error
}

CentralConfig is used to interact with the central configuration.

func NewCentralConfigReader

func NewCentralConfigReader(pd *types.PluginDiscovery) CentralConfig

NewCentralConfigReader returns a CentralConfig reader that can be used to read central configuration values.

Jump to

Keyboard shortcuts

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