config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config contains copy of some files from https://github.com/kubeshop/botkube/tree/efd7cd55ea37c1d01ec9bbc4a014f0960e663925/internal/config. At later point we might move the package out from internal directory on Botkube repo and then use it directly.

Index

Constants

View Source
const (
	// EnvProviderConfigPathsEnvKey holds config paths separated by comma.
	EnvProviderConfigPathsEnvKey = "BOTKUBE_CONFIG_PATHS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvProvider

type EnvProvider struct {
}

EnvProvider environment config source provider

func NewEnvProvider

func NewEnvProvider() *EnvProvider

NewEnvProvider initializes new environment config source provider

func (*EnvProvider) Configs

func (e *EnvProvider) Configs(ctx context.Context) (config.YAMLFiles, int, error)

Configs returns list of config file locations

type FileSystemProvider

type FileSystemProvider struct {
	Files []string
}

FileSystemProvider allows consumer to pass config files statically

func NewFileSystemProvider

func NewFileSystemProvider(configs []string) *FileSystemProvider

NewFileSystemProvider initializes new static config source provider

func (*FileSystemProvider) Configs

Configs returns list of config file locations.

Jump to

Keyboard shortcuts

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