envprovider

package
v0.0.0-...-ffea4ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEnvironmentVariables error = errors.New("No environment variables found")
	ErrPrefixNotFound         error = errors.New("Prefix not found")
)

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Prefix string
}

Provider provides a map with all configuration settings set in the OS environment with the provided prefix The prefix will be removed from the key name. Returns a map or error.

func (Provider) Provide

func (e Provider) Provide() (map[string]string, error)

Provide implements the Provider interface

Jump to

Keyboard shortcuts

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