dockerclient

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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