Safe Haskell | None |
---|---|
Language | Haskell2010 |
The podenv library entry point
Synopsis
- data Application = Application {}
- data Capabilities = Capabilities {}
- loadConfig :: Text -> IO Config
- decodeExpr :: DhallExpr -> Config
- select :: Config -> [Text] -> Either Text ([Text], Application)
- appToContext :: AppEnv -> Application -> Name -> IO Context
- data RuntimeEnv = RuntimeEnv {
- verbose :: Bool
- detach :: Bool
- system :: SystemConfig
- extraArgs :: [Text]
- volumesDir :: FilePath
- defaultRuntimeEnv :: FilePath -> RuntimeEnv
- execute :: RuntimeEnv -> Context -> IO ()
- getPodmanPodStatus :: MonadIO m => Name -> m PodmanStatus
- deletePodmanPod :: MonadIO m => Name -> m ()
Config
data Application Source #
Instances
data Capabilities Source #
Generate Haskell Types from Dhall Types. See: https://hackage.haskell.org/package/dhall-1.39.0/docs/Dhall-TH.html
Instances
Import
decodeExpr :: DhallExpr -> Config Source #
Pure config load
select :: Config -> [Text] -> Either Text ([Text], Application) Source #
Select the application, returning the unused cli args.
Context
appToContext :: AppEnv -> Application -> Name -> IO Context Source #
Runtime
data RuntimeEnv Source #
RuntimeEnv | |
|
Instances
Show RuntimeEnv Source # | |
Defined in Podenv.Runtime showsPrec :: Int -> RuntimeEnv -> ShowS # show :: RuntimeEnv -> String # showList :: [RuntimeEnv] -> ShowS # |
getPodmanPodStatus :: MonadIO m => Name -> m PodmanStatus Source #
deletePodmanPod :: MonadIO m => Name -> m () Source #