helpers_test

package
v0.0.0-...-96fdddc Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helpers

type Helpers struct {
	// contains filtered or unexported fields
}

func NewHelpers

func NewHelpers(wincBin, grootBin, grootImageStore, wincNetworkBin string, debug bool) *Helpers

func (*Helpers) ContainerExists

func (h *Helpers) ContainerExists(containerId string) bool

func (*Helpers) ContainerProcesses

func (h *Helpers) ContainerProcesses(containerId, filter string) []hcsshim.ProcessListItem

func (*Helpers) CopyFile

func (h *Helpers) CopyFile(dst, src string)

func (*Helpers) CreateContainer

func (h *Helpers) CreateContainer(bundleSpec specs.Spec, bundlePath, containerId string)

func (*Helpers) CreateNetwork

func (h *Helpers) CreateNetwork(networkConfig network.Config, networkConfigFile string, extraArgs ...string)

func (*Helpers) CreateVolume

func (h *Helpers) CreateVolume(rootfsURI, containerId string) specs.Spec

func (*Helpers) DeleteContainer

func (h *Helpers) DeleteContainer(id string)

func (*Helpers) DeleteNetwork

func (h *Helpers) DeleteNetwork(networkConfig network.Config, networkConfigFile string)

func (*Helpers) DeleteVolume

func (h *Helpers) DeleteVolume(id string)

func (*Helpers) ExecCommand

func (h *Helpers) ExecCommand(command string, args ...string) *exec.Cmd

func (*Helpers) ExecInContainer

func (h *Helpers) ExecInContainer(id string, args []string, detach bool) (*bytes.Buffer, *bytes.Buffer, error)

func (*Helpers) Execute

func (h *Helpers) Execute(c *exec.Cmd) (*bytes.Buffer, *bytes.Buffer, error)

func (*Helpers) ExitCode

func (h *Helpers) ExitCode(err error) (int, error)

func (*Helpers) GenerateBundle

func (h *Helpers) GenerateBundle(bundleSpec specs.Spec, bundlePath string)

func (*Helpers) GenerateNetworkConfig

func (h *Helpers) GenerateNetworkConfig() network.Config

func (*Helpers) GenerateRuntimeSpec

func (h *Helpers) GenerateRuntimeSpec(baseSpec specs.Spec) specs.Spec

func (*Helpers) GetContainerState

func (h *Helpers) GetContainerState(containerId string) specs.State

func (*Helpers) Logs

func (h *Helpers) Logs() []byte

func (*Helpers) NetworkDown

func (h *Helpers) NetworkDown(id, networkConfigFile string)

func (*Helpers) NetworkUp

func (h *Helpers) NetworkUp(id, input, networkConfigFile string) network.UpOutputs

func (*Helpers) RandomContainerId

func (h *Helpers) RandomContainerId() string

func (*Helpers) RunContainer

func (h *Helpers) RunContainer(bundleSpec specs.Spec, bundlePath, containerId string)

func (*Helpers) StartContainer

func (h *Helpers) StartContainer(containerId string)

func (*Helpers) TheProcessExits

func (h *Helpers) TheProcessExits(containerId, image string)

func (*Helpers) WriteNetworkConfig

func (h *Helpers) WriteNetworkConfig(networkConfig network.Config, networkConfigFile string)

Jump to

Keyboard shortcuts

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