Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Keter.Common
Description
Provides logging, versioning and some type aliases
Synopsis
- type Appname = Text
- data Plugin = Plugin {}
- type Plugins = [Plugin]
- class ToCurrent a where
- type Port = Int
- type Host = CI Text
- type HostBS = CI ByteString
- getAppname :: FilePath -> Text
- data KeterException
- = CannotParsePostgres FilePath
- | ExitCodeFailure FilePath ExitCode
- | NoPortsAvailable
- | InvalidConfigFile ParseException
- | InvalidKeterConfigFile !FilePath !ParseException
- | CannotReserveHosts !AppId !(Map Host AppId)
- | FileNotExecutable !FilePath
- | ExecutableNotFound !FilePath
- | EnsureAliveShouldBeBiggerThenZero {
- keterExceptionGot :: !Int
- data AppId
- data SSLConfig
Documentation
Name of the application. Should just be the basename of the application file.
class ToCurrent a where Source #
Used for versioning data types.
Instances
ToCurrent BundleConfig Source # | |
ToCurrent KeterConfig Source # | |
ToCurrent RedirectConfig Source # | |
Defined in Keter.Config.V10 Associated Types type Previous RedirectConfig Source # Methods toCurrent :: Previous RedirectConfig -> RedirectConfig Source # | |
ToCurrent StaticFilesConfig Source # | |
Defined in Keter.Config.V10 Associated Types type Previous StaticFilesConfig Source # Methods toCurrent :: Previous StaticFilesConfig -> StaticFilesConfig Source # | |
ToCurrent (WebAppConfig ()) Source # | |
Defined in Keter.Config.V10 Associated Types type Previous (WebAppConfig ()) Source # Methods toCurrent :: Previous (WebAppConfig ()) -> WebAppConfig () Source # | |
ToCurrent a => ToCurrent (Maybe a) Source # | |
type HostBS = CI ByteString Source #
getAppname :: FilePath -> Text Source #
data KeterException Source #
Constructors
Instances
Exception KeterException Source # | |
Defined in Keter.Common Methods toException :: KeterException -> SomeException # | |
Show KeterException Source # | |
Defined in Keter.Common Methods showsPrec :: Int -> KeterException -> ShowS # show :: KeterException -> String # showList :: [KeterException] -> ShowS # |
Instances
FromJSON SSLConfig Source # | |
ToJSON SSLConfig Source # | |
Defined in Keter.Common | |
Show SSLConfig Source # | |
Eq SSLConfig Source # | |
Ord SSLConfig Source # | |
ParseYamlFile SSLConfig Source # | |
Defined in Keter.Common |