Safe Haskell | None |
---|---|
Language | Haskell2010 |
B9 is a library and build tool with primitive operations to rmrun a build script inside a virtual machine and to create and convert virtual machine image files as well as related ISO and VFAT disk images for e.g. cloud-init configuration sources.
This module re-exports the modules needed to build a tool around the
library, e.g. see src/cli/Main.hs
as an example.
B9.ArtifactGenerator is the module containing the basic data structure used to describe a B9 build.
- b9Version :: Version
- b9VersionString :: String
- data B9RunParameters a = B9RunParameters B9ConfigOverride (B9Invokation a) BuildVariables
- runB9 :: B9RunParameters a -> IO (a, Bool)
- defaultB9RunParameters :: B9Invokation a -> B9RunParameters a
- runShowVersion :: B9Invokation ()
- runBuildArtifacts :: [FilePath] -> B9Invokation ()
- runFormatBuildFiles :: [FilePath] -> B9Invokation ()
- runPush :: SharedImageName -> B9Invokation ()
- runPull :: Maybe SharedImageName -> B9Invokation ()
- runRun :: SharedImageName -> [String] -> B9Invokation ()
- runGcLocalRepoCache :: B9Invokation ()
- runGcRemoteRepoCache :: B9Invokation ()
- runListSharedImages :: B9Invokation ()
- runAddRepo :: RemoteRepo -> B9Invokation ()
- runLookupLocalSharedImage :: SharedImageName -> B9Invokation (Maybe SharedImageBuildId)
Documentation
b9VersionString :: String Source #
Return the cabal package version of the B9 library,
formatted using showVersion
.
data B9RunParameters a Source #
A data structure that contains the B9Invokation
as well as build parameters.
runB9 :: B9RunParameters a -> IO (a, Bool) Source #
Run a b9 build.
Return True
if the build was successful.
defaultB9RunParameters :: B9Invokation a -> B9RunParameters a Source #
runShowVersion :: B9Invokation () Source #
runBuildArtifacts :: [FilePath] -> B9Invokation () Source #
runFormatBuildFiles :: [FilePath] -> B9Invokation () Source #
runPush :: SharedImageName -> B9Invokation () Source #
runPull :: Maybe SharedImageName -> B9Invokation () Source #
runRun :: SharedImageName -> [String] -> B9Invokation () Source #
runAddRepo :: RemoteRepo -> B9Invokation () Source #