configutils

package
v0.0.0-...-46749fd Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 6 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 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

func NewProviderFactory

func NewProviderFactory(cfg *confmap.Conf) confmap.ProviderFactory

NewProviderFactory creates a new confmap.ProviderFactory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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