Debian Codegraph @

cmd/builder/internal/config/default.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package config // import "go.opentelemetry.io/collector/cmd/builder/internal/config"
5
6 import (
7 "embed"
8
9 "github.com/knadh/koanf/providers/fs"
10 "github.com/knadh/koanf/v2"
11 )
12
13 //go:embed *.yaml
14 var configs embed.FS
15
16 // DefaultProvider returns a koanf.Provider that provides the default build
17 // configuration file. This is the same configuration that otelcorecol is
18 // built with.
19 func DefaultProvider() koanf.Provider {
20 return fs.Provider(configs, "default.yaml")
21 }