Documentation
¶
Overview ¶
Package machine prepares on the host what a backend that boots the kernel of aibox itself needs, whichever VMM it uses: the files of the image, the state disk with its lock, and the vm.Machine of a spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStateBusy is a state disk another run of the project has locked. ErrStateBusy = errors.New("another aibox runs this project") // ErrKernel is a kernel that is not the one this aibox was released // with. ErrKernel = errors.New("the kernel is not the one of this release") )
Functions ¶
func LockState ¶
LockState opens the state disk for writing and locks it. The lock stays with the descriptor, so a second run of the project fails here instead of writing to the same file system, for as long as the descriptor or a copy of it, such as the one a VMM inherits, is open.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.