Documentation ¶
Index ¶
- func AddVSMB(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM, path string, ...) *uvm.VSMBShare
- func Close(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM)
- func CreateAndStartLCOW(ctx context.Context, tb testing.TB, id string) *uvm.UtilityVM
- func CreateAndStartLCOWFromOpts(ctx context.Context, tb testing.TB, opts *uvm.OptionsLCOW) *uvm.UtilityVM
- func CreateWCOWUVM(ctx context.Context, tb testing.TB, id, image string) (*uvm.UtilityVM, []string, string)deprecated
- func CreateWCOWUVMFromOptsWithImage(ctx context.Context, tb testing.TB, opts *uvm.OptionsWCOW, image string) (*uvm.UtilityVM, []string, string)deprecated
- func DefaultLCOWOptions(ctx context.Context, tb testing.TB, id, owner string) *uvm.OptionsLCOW
- func DefaultWCOWOptions(_ context.Context, tb testing.TB, id, owner string) *uvm.OptionsWCOW
- func Kill(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM)
- func SetSecurityPolicy(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM, policy string)
- func Start(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM)
- func Wait(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM)
- type CleanupFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndStartLCOW ¶
CreateAndStartLCOW with all default options.
func CreateAndStartLCOWFromOpts ¶
func CreateAndStartLCOWFromOpts(ctx context.Context, tb testing.TB, opts *uvm.OptionsLCOW) *uvm.UtilityVM
CreateAndStartLCOWFromOpts creates an LCOW utility VM with the specified options.
The cleanup function will be added to `tb.Cleanup`.
func CreateWCOWUVM
deprecated
func CreateWCOWUVMFromOptsWithImage
deprecated
func CreateWCOWUVMFromOptsWithImage( ctx context.Context, tb testing.TB, 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.
Deprecated: use CreateWCOW and layers.WCOWScratchDir.
func DefaultLCOWOptions ¶
DefaultLCOWOptions returns default options for a bootable LCOW uVM, but first checks if `containerd.exe` is in the path, or C:\ContainerPlat\LinuxBootFiles exists, and prefers those paths above the default boot path set by uvm.NewDefaultOptionsLCOW
This is accounts for the tests being run a location different from the containerd.exe path.
See uvm.NewDefaultOptionsLCOW for more information.
func DefaultWCOWOptions ¶
DefaultWCOWOptions returns default options for a bootable WCOW uVM.
See uvm.NewDefaultOptionsWCOW for more information.