Safe Haskell | None |
---|
Utilities for determining the server configuration from environment variables and file input.
- variables :: [ByteString]
- fromEnv :: IO (Map ByteString ByteString)
- maybeGetEnv :: ByteString -> IO (Maybe ByteString)
- fromBytes :: ByteString -> Map ByteString ByteString
- line :: Parser (ByteString, ByteString)
- fromEnvAndSTDIN :: IO (Map ByteString ByteString)
- conf :: IO (Either (Map ByteString ByteString) (Ctx, Settings))
- createSettings :: Map ByteString ByteString -> Maybe Settings
- createCtx :: Map ByteString ByteString -> IO (Maybe Ctx)
- validate :: ByteString -> ByteString -> Maybe ByteString
- prune :: Map ByteString ByteString -> Map ByteString ByteString
- endpoint :: ByteString -> Maybe ByteString
- render :: Map ByteString ByteString -> ByteString
Documentation
maybeGetEnv :: ByteString -> IO (Maybe ByteString)Source
line :: Parser (ByteString, ByteString)Source
Recognizes a parseable k = v
or k: v
style line. It's relatively
flexible on input but rejects lines that might have shell interpolations
in them -- lines containing one of $`{}
-- as well as lines with shell
quotes ('"
). This allows the file input parser to skip over such values
when a raw rc file is loaded.
conf :: IO (Either (Map ByteString ByteString) (Ctx, Settings))Source
createCtx :: Map ByteString ByteString -> IO (Maybe Ctx)Source
validate :: ByteString -> ByteString -> Maybe ByteStringSource
endpoint :: ByteString -> Maybe ByteStringSource
Interpret a region name, like us-west-1
, in accord with the Amazon's
documentation for endpoint lcoations.
http://docs.amazonwebservices.com/general/latest/gr/rande.html