| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
B9.DiskImages
Description
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.
Constructors
| ImageTarget ImageDestination ImageSource MountPoint |
Instances
data MountPoint Source
A mount point or NotMounted
Constructors
| MountPoint FilePath | |
| NotMounted |
Instances
data ImageDestination Source
The destination of an image.
data ImageSource Source
Specification of how the image to build is obtained.
Constructors
| EmptyImage String FileSystem ImageType ImageSize | |
| CopyOnWrite Image | |
| SourceImage Image Partition ImageResize | |
| From String ImageResize |
Instances
Constructors
| Image FilePath ImageType FileSystem |
data ImageResize Source
Constructors
| ResizeImage ImageSize | |
| Resize ImageSize | |
| ShrinkToMinimum | |
| KeepSize |
Instances
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.