Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data types that describe all B9 relevant elements of virtual machine disk images.
- data ImageTarget = ImageTarget ImageDestination ImageSource MountPoint
- data MountPoint
- data ImageDestination
- data ImageSource
- data Partition
- data Image = Image FilePath ImageType FileSystem
- data ImageType
- data FileSystem
- = NoFileSystem
- | Ext4
- | ISO9660
- | VFAT
- data ImageSize = ImageSize Int SizeUnit
- data SizeUnit
- data ImageResize
- type Mounted a = (a, MountPoint)
- itImageDestination :: ImageTarget -> ImageDestination
- itImageMountPoint :: ImageTarget -> MountPoint
- isPartitioned :: Partition -> Bool
- getPartition :: Partition -> Int
- imageFileExtension :: ImageType -> String
- changeImageFormat :: ImageType -> Image -> Image
- changeImageDirectory :: FilePath -> Image -> Image
- data SharedImage = SharedImage SharedImageName SharedImageDate SharedImageBuildId ImageType FileSystem
- siName :: SharedImage -> String
- newtype SharedImageName = SharedImageName String
- newtype SharedImageDate = SharedImageDate String
- newtype SharedImageBuildId = SharedImageBuildId String
- sharedImageImage :: SharedImage -> Image
- sharedImageFileName :: SharedImage -> FilePath
- sharedImagesRootDirectory :: FilePath
- sharedImageFileExtension :: String
Documentation
data ImageTarget Source
Build target for disk images.
data MountPoint Source
A mount point or NotMounted
data ImageDestination Source
The destination of an image.
data ImageSource Source
Specification of how the image to build is obtained.
data FileSystem Source
data ImageResize Source
type Mounted a = (a, MountPoint) Source
isPartitioned :: Partition -> Bool Source
getPartition :: Partition -> Int Source
imageFileExtension :: ImageType -> String Source
Return the file name extension of an image file with a specific image format.
changeImageFormat :: ImageType -> Image -> Image Source
changeImageDirectory :: FilePath -> Image -> Image Source
siName :: SharedImage -> String Source
Return the name of a shared image.
sharedImageImage :: SharedImage -> Image Source
Return the disk image of an sharedImage
sharedImageFileName :: SharedImage -> FilePath Source
Calculate the path to the text file holding the serialized SharedImage
relative to the directory of shared images in a repository.