Documentation
¶
Index ¶
- func AbsolutePath(parentDir, relOrAbsPath string) (string, error)
- func AbsolutePaths(parentDir string, relOrAbsPaths []string) ([]string, error)
- func Expand(value string, env []string) string
- type EnvFilesProviders
- type KeyValuePair
- type KeyValueProvider
- type MultiProvider
- type NoFailProvider
- type OnePasswordProvider
- type OsEnvProvider
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
Types ¶
type EnvFilesProviders ¶
type EnvFilesProviders struct {
// contains filtered or unexported fields
}
func NewEnvFilesProvider ¶
func NewEnvFilesProvider(absEnvFiles []string) *EnvFilesProviders
type KeyValuePair ¶
func ReadEnvFile ¶
func ReadEnvFile(absolutePath string) ([]KeyValuePair, error)
func ReadEnvFiles ¶
func ReadEnvFiles(absolutePaths []string) ([]KeyValuePair, error)
type KeyValueProvider ¶
type KeyValueProvider struct {
// contains filtered or unexported fields
}
KeyValueProvider provides access to a map of key-value pairs as environment variables usually configured with `env:` section in a configuration file.
func NewKeyValueProvider ¶
func NewKeyValueProvider(env map[string]string) *KeyValueProvider
type MultiProvider ¶
type MultiProvider struct {
// contains filtered or unexported fields
}
func NewMultiProvider ¶
func NewMultiProvider(providers ...Provider) *MultiProvider
type NoFailProvider ¶
type NoFailProvider struct {
// contains filtered or unexported fields
}
func NewNoFailProvider ¶
func NewNoFailProvider(provider Provider) *NoFailProvider
type OnePasswordProvider ¶
type OnePasswordProvider struct {
// contains filtered or unexported fields
}
func NewOnePasswordProvider ¶
func NewOnePasswordProvider() *OnePasswordProvider
type OsEnvProvider ¶
type OsEnvProvider struct{}
OsEnvProvider provides access to the operating system's environment variables.
func NewOsEnvProvider ¶
func NewOsEnvProvider() *OsEnvProvider
Click to show internal directories.
Click to hide internal directories.