mockclient

package
v0.0.0-...-ec97c03 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 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 MockClient

type MockClient struct {
	mock.Mock
}

MockClient is mock implementation of container.Client which is a wrapper for Docker API.

func NewMockClient

func NewMockClient() *MockClient

func (*MockClient) Inspect

func (m *MockClient) Inspect(containerID string) (*container.Container, error)

func (*MockClient) IsCreatedByTugbot

func (m *MockClient) IsCreatedByTugbot(e *dockerclient.Event) bool

func (*MockClient) ListContainers

func (m *MockClient) ListContainers(cf container.Filter) ([]container.Container, error)

func (*MockClient) StartContainerFrom

func (m *MockClient) StartContainerFrom(c container.Container) error

func (*MockClient) StartMonitorEvents

func (m *MockClient) StartMonitorEvents(cb dockerclient.Callback)

func (*MockClient) StopAllMonitorEvents

func (m *MockClient) StopAllMonitorEvents()

Jump to

Keyboard shortcuts

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