Documentation ¶
Index ¶
- func CreateLCOWBlankRWLayer(t *testing.T, vmID string) string
- func CreateLCOWUVM(t *testing.T, id string) *uvm.UtilityVM
- func CreateLCOWUVMFromOpts(t *testing.T, opts *uvm.OptionsLCOW) *uvm.UtilityVM
- func CreateTempDir(t *testing.T) string
- func CreateWCOWBlankRWLayer(t *testing.T, imageLayers []string) string
- func CreateWCOWUVM(t *testing.T, id, image string) (*uvm.UtilityVM, []string, string)
- func CreateWCOWUVMFromOpts(t *testing.T, opts *uvm.OptionsWCOW) *uvm.UtilityVM
- func CreateWCOWUVMFromOptsWithImage(t *testing.T, opts *uvm.OptionsWCOW, image string) (*uvm.UtilityVM, []string, string)
- func GetDefaultLinuxSpec(t *testing.T) *specs.Spec
- func GetDefaultWindowsSpec(t *testing.T) *specs.Spec
- func LayerFolders(t *testing.T, imageName string) []string
- func RequiresBuild(t *testing.T, b uint16)
- func RequiresExactBuild(t *testing.T, b uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLCOWBlankRWLayer ¶
CreateLCOWBlankRWLayer uses an LCOW utility VM to create a blank VHDX and format it ext4. If vmID is supplied, it grants access to the destination file. This can then be used as a scratch space for a container, or for a "service VM".
func CreateLCOWUVM ¶
CreateLCOWUVM with all default options.
func CreateLCOWUVMFromOpts ¶
CreateLCOWUVMFromOpts creates an LCOW utility VM with the specified options.
func CreateTempDir ¶
CreateTempDir creates a temporary directory
func CreateWCOWBlankRWLayer ¶
CreateWCOWBlankRWLayer uses HCS to create a temp test directory containing a read-write layer containing a disk that can be used as a containers scratch space. The VHD is created with VM group access TODO: This is wrong. Need to search the folders.
func CreateWCOWUVM ¶
CreateWCOWUVM creates a WCOW utility VM with all default options. Returns the UtilityVM object; folder used as its scratch
func CreateWCOWUVMFromOpts ¶
CreateWCOWUVMFromOpts creates a WCOW utility VM with the passed opts.
func CreateWCOWUVMFromOptsWithImage ¶
func CreateWCOWUVMFromOptsWithImage(t *testing.T, opts *uvm.OptionsWCOW, image string) (*uvm.UtilityVM, []string, string)
CreateWCOWUVMFromOptsWithImage creates a WCOW utility VM with the passed opts builds the LayerFolders based on `image`. Returns the UtilityVM object; folder used as its scratch
func RequiresBuild ¶
func RequiresExactBuild ¶
Types ¶
This section is empty.