Documentation ¶
Index ¶
- type Helpers
- func (h *Helpers) ContainerExists(containerId string) bool
- func (h *Helpers) ContainerProcesses(containerId, filter string) []hcsshim.ProcessListItem
- func (h *Helpers) CopyFile(dst, src string)
- func (h *Helpers) CreateContainer(bundleSpec specs.Spec, bundlePath, containerId string)
- func (h *Helpers) CreateNetwork(networkConfig network.Config, networkConfigFile string, extraArgs ...string)
- func (h *Helpers) CreateVolume(rootfsURI, containerId string) specs.Spec
- func (h *Helpers) DeleteContainer(id string)
- func (h *Helpers) DeleteNetwork(networkConfig network.Config, networkConfigFile string)
- func (h *Helpers) DeleteVolume(id string)
- func (h *Helpers) ExecCommand(command string, args ...string) *exec.Cmd
- func (h *Helpers) ExecInContainer(id string, args []string, detach bool) (*bytes.Buffer, *bytes.Buffer, error)
- func (h *Helpers) Execute(c *exec.Cmd) (*bytes.Buffer, *bytes.Buffer, error)
- func (h *Helpers) ExitCode(err error) (int, error)
- func (h *Helpers) GenerateBundle(bundleSpec specs.Spec, bundlePath string)
- func (h *Helpers) GenerateNetworkConfig() network.Config
- func (h *Helpers) GenerateRuntimeSpec(baseSpec specs.Spec) specs.Spec
- func (h *Helpers) GetContainerState(containerId string) specs.State
- func (h *Helpers) Logs() []byte
- func (h *Helpers) NetworkDown(id, networkConfigFile string)
- func (h *Helpers) NetworkUp(id, input, networkConfigFile string) network.UpOutputs
- func (h *Helpers) RandomContainerId() string
- func (h *Helpers) RunContainer(bundleSpec specs.Spec, bundlePath, containerId string)
- func (h *Helpers) StartContainer(containerId string)
- func (h *Helpers) TheProcessExits(containerId, image string)
- func (h *Helpers) WriteNetworkConfig(networkConfig network.Config, networkConfigFile string)
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 (*Helpers) ContainerExists ¶
func (*Helpers) ContainerProcesses ¶
func (h *Helpers) ContainerProcesses(containerId, filter string) []hcsshim.ProcessListItem
func (*Helpers) CreateContainer ¶
func (*Helpers) CreateNetwork ¶
func (*Helpers) CreateVolume ¶
func (*Helpers) DeleteContainer ¶
func (*Helpers) DeleteNetwork ¶
func (*Helpers) DeleteVolume ¶
func (*Helpers) ExecCommand ¶
func (*Helpers) ExecInContainer ¶
func (*Helpers) GenerateBundle ¶
func (*Helpers) GenerateNetworkConfig ¶
func (*Helpers) GenerateRuntimeSpec ¶
func (*Helpers) GetContainerState ¶
func (*Helpers) NetworkDown ¶
func (*Helpers) RandomContainerId ¶
func (*Helpers) RunContainer ¶
func (*Helpers) StartContainer ¶
func (*Helpers) TheProcessExits ¶
Click to show internal directories.
Click to hide internal directories.