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 #
Instances
Backend SystemdNspawn Source # | |
Defined in B9.SystemdNspawn getBackendConfig :: (Member BuildInfoReader e, CommandIO e) => proxy SystemdNspawn -> Eff e (Maybe SystemdNspawn) Source # supportedImageTypes :: proxy SystemdNspawn -> [ImageType] Source # runInEnvironment :: (Member BuildInfoReader e, CommandIO e, Member ExcB9 e) => SystemdNspawn -> ExecEnv -> Script -> Eff e Bool Source # | |
Backend Podman Source # | |
Defined in B9.Podman | |
Backend LibVirtLXC Source # | |
Defined in B9.LibVirtLXC getBackendConfig :: (Member BuildInfoReader e, CommandIO e) => proxy LibVirtLXC -> Eff e (Maybe LibVirtLXC) Source # supportedImageTypes :: proxy LibVirtLXC -> [ImageType] Source # runInEnvironment :: (Member BuildInfoReader e, CommandIO e, Member ExcB9 e) => LibVirtLXC -> ExecEnv -> Script -> Eff e Bool Source # | |
Backend Docker Source # | |
Defined in B9.Docker |