module B9.Container
( Backend (..),
)
where
import B9.B9Error
import B9.B9Logging
import B9.BuildInfo
import B9.DiskImages
import B9.ExecEnv
import B9.ShellScript
import Control.Eff
class Backend config where
getBackendConfig ::
forall proxy e.
(Member BuildInfoReader e, CommandIO e) =>
proxy config ->
Eff e (Maybe config)
supportedImageTypes :: proxy config -> [ImageType]
supportedImageTypes _ = [Raw]
runInEnvironment ::
forall e.
(Member BuildInfoReader e, CommandIO e, Member ExcB9 e) =>
config ->
ExecEnv ->
Script ->
Eff e Bool