configcheck

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package configcheck has checks to be applied to configuration objects implemented by factories of components used in the OpenTelemetry collector. It is recommended for implementers of components to run the validations available on this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(config interface{}) error

ValidateConfig 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 ValidateConfigFromFactories

func ValidateConfigFromFactories(factories config.Factories) error

ValidateConfigFromFactories checks if all configurations for the given factories are satisfying the patterns used by the collector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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