dockerclient

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDockerClient

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

MockDockerClient is a mock for Docker client.

func NewMockDockerClient

func NewMockDockerClient() *MockDockerClient

NewMockDockerClient is a constructor for MockDockerClient.

func (*MockDockerClient) AddPod

func (m *MockDockerClient) AddPod(podID pod.ID, container string, pid int)

AddPod simulates creation of a pod.

func (*MockDockerClient) Connect

func (m *MockDockerClient) Connect()

Connect puts the mock Docker client into the connected state.

func (*MockDockerClient) DelPod

func (m *MockDockerClient) DelPod(podID pod.ID)

DelPod simulates removal of a pod.

func (*MockDockerClient) Disconnect

func (m *MockDockerClient) Disconnect()

Disconnect puts the mock Docker client into the disconnected state.

func (*MockDockerClient) InspectContainer

func (m *MockDockerClient) InspectContainer(id string) (*docker.Container, error)

InspectContainer returns information about a container by its ID.

func (*MockDockerClient) ListContainers

func (m *MockDockerClient) ListContainers(opts docker.ListContainersOptions) (containers []docker.APIContainers, err error)

ListContainers returns a slice of containers matching the given criteria.

func (*MockDockerClient) Ping

func (m *MockDockerClient) Ping() error

Ping pings the docker server.

Jump to

Keyboard shortcuts

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