Safe Haskell | None |
---|---|
Language | Haskell2010 |
An interface for container backends such as libvirt-lxc or docker
Synopsis
- class Backend config where
- getBackendConfig :: forall proxy e. (Member BuildInfoReader e, CommandIO e) => proxy config -> Eff e (Maybe config)
- supportedImageTypes :: proxy config -> [ImageType]
- runInEnvironment :: forall e. (Member BuildInfoReader e, CommandIO e, Member ExcB9 e) => config -> ExecEnv -> Script -> Eff e Bool
Documentation
class Backend config where Source #
getBackendConfig :: forall proxy e. (Member BuildInfoReader e, CommandIO e) => proxy config -> Eff e (Maybe config) Source #
Return Nothing
if the configuration **disables** this container backend,
and return 'Just ...' if the configuration **enables** this container backend.
supportedImageTypes :: proxy config -> [ImageType] Source #
The input images, that a given container accepts
runInEnvironment :: forall e. (Member BuildInfoReader e, CommandIO e, Member ExcB9 e) => config -> ExecEnv -> Script -> Eff e Bool Source #