Documentation
¶
Index ¶
- func AbsolutePath(parentDir, relOrAbsPath string) (string, error)
- func AbsolutePaths(parentDir string, relOrAbsPaths []string) ([]string, error)
- func Expand(ctx context.Context, value string, env Provider) (string, error)
- func ExpandAll(ctx context.Context, values []string, env Provider) ([]string, error)
- func ToValues(envMap map[string]string) []string
- type EnvFilesProviders
- type ErrKeychainNotAvailable
- type ErrPassNotAvailable
- type KeyValuePair
- type KeychainProvider
- type MultiProvider
- type OnePasswordProvider
- type OsEnvProvider
- type PassProvider
- 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, error)
type ErrKeychainNotAvailable ¶ added in v1.0.4
type ErrKeychainNotAvailable struct{}
func (ErrKeychainNotAvailable) Error ¶ added in v1.0.4
func (ErrKeychainNotAvailable) Error() string
type ErrPassNotAvailable ¶ added in v1.0.3
type ErrPassNotAvailable struct{}
func (ErrPassNotAvailable) Error ¶ added in v1.0.3
func (ErrPassNotAvailable) Error() string
type KeyValuePair ¶
func ReadEnvFile ¶
func ReadEnvFile(absolutePath string) ([]KeyValuePair, error)
func ReadEnvFiles ¶
func ReadEnvFiles(absolutePaths []string) ([]KeyValuePair, error)
type KeychainProvider ¶ added in v1.0.4
type KeychainProvider struct{}
KeychainProvider is a provider that retrieves secrets using the macOS keychain via the `security` command-line tool.
func NewKeychainProvider ¶ added in v1.0.4
func NewKeychainProvider() (*KeychainProvider, error)
NewKeychainProvider creates a new KeychainProvider instance. It verifies that the `security` command is available on the system.
type MultiProvider ¶
type MultiProvider struct {
// contains filtered or unexported fields
}
func NewMultiProvider ¶
func NewMultiProvider(providers ...Provider) *MultiProvider
type OnePasswordProvider ¶
type OnePasswordProvider struct {
// contains filtered or unexported fields
}
func NewOnePasswordProvider ¶
func NewOnePasswordProvider(ctx context.Context) (*OnePasswordProvider, error)
type OsEnvProvider ¶
type OsEnvProvider struct{}
OsEnvProvider provides access to the operating system's environment variables.
func NewOsEnvProvider ¶
func NewOsEnvProvider() *OsEnvProvider
type PassProvider ¶ added in v1.0.3
type PassProvider struct{}
PassProvider is a provider that retrieves secrets using the `pass` password manager.
func NewPassProvider ¶ added in v1.0.3
func NewPassProvider() (*PassProvider, error)
NewPassProvider creates a new PassProvider instance.
Click to show internal directories.
Click to hide internal directories.