helpers_test

package
v0.0.0-...-b82d7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gz

func Gz(buf []byte) bool

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) CreateContainer

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

func (*Helpers) CreateVolume

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

func (*Helpers) DeleteContainer

func (h *Helpers) DeleteContainer(id 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) GenerateBundle

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

func (*Helpers) GenerateRuntimeSpec

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

func (*Helpers) IsGzFile

func (h *Helpers) IsGzFile(path string) (bool, error)

func (*Helpers) StartContainer

func (h *Helpers) StartContainer(containerId string)

Jump to

Keyboard shortcuts

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