envsource

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package envsource is a configuration source that loads environment variables.

Package envsource is a configuration source that loads environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromOptions

func FromOptions(opts ...options.Option) []string

FromOptions extracts the environment variable prefix from the configuration options Parameter options: Point to options. Options, which contains configuration options Return value: String slice containing the environment variable prefix set in the configuration

func NewEnvSource

func NewEnvSource(sourceCfg *sourcev1.SourceConfig, opts ...options.Option) (runtimeconfig.KSource, error)

func NewSource

func NewSource(prefixes ...string) config.Source

func WithPrefixes

func WithPrefixes(prefixes ...string) options.Option

WithPrefixes creates an option to set the environment variable prefix Parameter prefixes: One or more string prefixes by which environment variables will be filtered Return value: Returns a options. Option function, which applies the prefix configuration to the configuration options

Types

This section is empty.

Jump to

Keyboard shortcuts

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