configtest

package
Version: v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 LoadConfig added in v0.28.0

func LoadConfig(fileName string, factories component.Factories) (*config.Config, error)

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

func LoadConfigAndValidate added in v0.28.0

func LoadConfigAndValidate(fileName string, factories component.Factories) (*config.Config, error)

LoadConfigAndValidate loads a config from the file, and validates 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