Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data VaultServerProcess
- launchVaultServerProcess :: Maybe FilePath -> FilePath -> VaultAddress -> IO VaultServerProcess
- shutdownVaultServerProcess :: VaultServerProcess -> IO ()
- withVaultServerProcess :: Maybe FilePath -> FilePath -> VaultAddress -> IO a -> IO a
- type VaultBackendConfig = Value
- withVaultConfigFile :: VaultConfig -> (FilePath -> IO a) -> IO a
- vaultConfigDefaultAddress :: VaultBackendConfig -> VaultConfig
- vaultAddress :: VaultConfig -> VaultAddress
- readVaultBackendConfig :: FilePath -> IO VaultBackendConfig
- readVaultUnsealKeys :: FilePath -> IO [VaultUnsealKey]
Documentation
data VaultServerProcess Source #
launchVaultServerProcess :: Maybe FilePath -> FilePath -> VaultAddress -> IO VaultServerProcess Source #
withVaultServerProcess :: Maybe FilePath -> FilePath -> VaultAddress -> IO a -> IO a Source #
type VaultBackendConfig = Value Source #
The ""backend"" section of the Vault server configuration.
See https://www.vaultproject.io/docs/config/index.html
{ "consul": { "address": "127.0.0.1:8500", "path": "vault" } }
{ "file": { "path": "vault-storage" } }
vaultConfigDefaultAddress :: VaultBackendConfig -> VaultConfig Source #
vaultAddress :: VaultConfig -> VaultAddress Source #
Get the address that can be used to connect to a running Vault server launched with the specified config.
The returned value will begin with ""http://"" or ""https://"" (depending on the config)
readVaultUnsealKeys :: FilePath -> IO [VaultUnsealKey] Source #
File should have one line per key (blank lines are ignored)