configutils

package
v0.0.0-...-1dd94e2 Latest Latest
Warning

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

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

Documentation

Overview

Package configutils contains utilities used for reading configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigProviderFromMap

func NewConfigProviderFromMap(cfg *confmap.Conf) otelcol.ConfigProvider

NewConfigProviderFromMap creates a service.ConfigProvider with a single constant provider `map`, built from a given *confmap.Conf.

func NewMapFromYAMLString

func NewMapFromYAMLString(cfg string) (*confmap.Conf, error)

NewMapFromYAMLString creates a confmap.Conf from a YAML-formatted configuration string. Adapted from: https://github.com/open-telemetry/opentelemetry-collector/blob/v0.41.0/config/configmapprovider/inmemory.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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