container

package
v0.0.0-...-46ef279 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	tb testing.TB,
	vm *uvm.UtilityVM,
	spec *specs.Spec,
	name, owner string,
) (c cow.Container, r *resources.Resources, _ func())

a test version of the container creation logic in: cmd\containerd-shim-runhcs-v1\task_hcs.go:createContainer

func Kill

func Kill(ctx context.Context, tb testing.TB, c cow.Container)

func Start

func Start(ctx context.Context, tb testing.TB, c cow.Container, io *testcmd.BufferedIO) *cmd.Cmd

for starting an LCOW container, where no process spec is passed

see:

  • github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/exec_hcs.go: (*hcsExec).startInternal
  • github.com/Microsoft/hcsshim/cmd/internal/cmd/cmd.go: (*Cmd).Start

func StartWithSpec

func StartWithSpec(ctx context.Context, tb testing.TB, c cow.Container, p *specs.Process, io *testcmd.BufferedIO) *cmd.Cmd

func Wait

func Wait(_ context.Context, tb testing.TB, c cow.Container)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL