Documentation
¶
Overview ¶
Package volume manages persistent virtio-blk disk volumes for unikernel VMs. A volume is a raw disk image file in the volume root directory, identified by a human-readable name. Volumes survive VM restarts; they are only deleted when the user explicitly runs "jerboa volume rm".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages volumes on disk.
func (*Store) Create ¶
Create allocates a new volume named name with the given size in bytes. If sizeBytes is 0 the default (1 GiB) is used.
type Volume ¶
type Volume struct {
// ID is the volume name (unique within the store).
ID string `json:"id"`
// DiskPath is the absolute path to the raw disk image file.
DiskPath string `json:"disk_path"`
// SizeBytes is the allocated size of the disk image.
SizeBytes int64 `json:"size_bytes"`
// CreatedAt is when the volume was created.
CreatedAt time.Time `json:"created_at"`
}
Volume is a named persistent disk image.
Click to show internal directories.
Click to hide internal directories.