configtest

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package configtest loads the configuration to test packages implementing the config package interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigStruct added in v0.36.0

func CheckConfigStruct(config interface{}) error

CheckConfigStruct enforces that given configuration object is following the patterns used by the collector. This ensures consistency between different implementations of components and extensions. It is recommended for implementers of components to call this function on their tests passing the default configuration of the component factory.

func LoadConfigMap added in v0.41.0

func LoadConfigMap(fileName string) (*config.Map, error)

LoadConfigMap loads a config.Map from file, and does NOT validate the configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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