Documentation ¶
Index ¶
- type MockClient
- func (client *MockClient) AttachContainer(id string, options *dockerclient.AttachOptions) (io.ReadCloser, error)
- func (client *MockClient) BuildImage(image *dockerclient.BuildImage) (io.ReadCloser, error)
- func (client *MockClient) ConnectNetwork(id, container string) error
- func (client *MockClient) ContainerChanges(id string) ([]*dockerclient.ContainerChanges, error)
- func (client *MockClient) ContainerLogs(id string, options *dockerclient.LogOptions) (io.ReadCloser, error)
- func (client *MockClient) CreateContainer(config *dockerclient.ContainerConfig, name string, ...) (string, error)
- func (client *MockClient) CreateNetwork(config *dockerclient.NetworkCreate) (*dockerclient.NetworkCreateResponse, error)
- func (client *MockClient) CreateVolume(request *dockerclient.VolumeCreateRequest) (*dockerclient.Volume, error)
- func (client *MockClient) DisconnectNetwork(id, container string) error
- func (client *MockClient) ExecCreate(config *dockerclient.ExecConfig) (string, error)
- func (client *MockClient) ExecResize(id string, width, height int) error
- func (client *MockClient) ExecStart(id string, config *dockerclient.ExecConfig) error
- func (client *MockClient) ImportImage(source string, repository string, tag string, tar io.Reader) (io.ReadCloser, error)
- func (client *MockClient) Info() (*dockerclient.Info, error)
- func (client *MockClient) InspectContainer(id string) (*dockerclient.ContainerInfo, error)
- func (client *MockClient) InspectImage(id string) (*dockerclient.ImageInfo, error)
- func (client *MockClient) InspectNetwork(id string) (*dockerclient.NetworkResource, error)
- func (client *MockClient) KillContainer(id, signal string) error
- func (client *MockClient) ListContainers(all bool, size bool, filters string) ([]dockerclient.Container, error)
- func (client *MockClient) ListImages(all bool) ([]*dockerclient.Image, error)
- func (client *MockClient) ListNetworks(filters string) ([]*dockerclient.NetworkResource, error)
- func (client *MockClient) ListVolumes() ([]*dockerclient.Volume, error)
- func (client *MockClient) LoadImage(reader io.Reader) error
- func (client *MockClient) MonitorEvents(options *dockerclient.MonitorEventsOptions, stopChan <-chan struct{}) (<-chan dockerclient.EventOrError, error)
- func (client *MockClient) PauseContainer(name string) error
- func (client *MockClient) PullImage(name string, auth *dockerclient.AuthConfig) error
- func (client *MockClient) PushImage(name string, tag string, auth *dockerclient.AuthConfig) error
- func (client *MockClient) RemoveContainer(id string, force, volumes bool) error
- func (client *MockClient) RemoveImage(name string, force bool) ([]*dockerclient.ImageDelete, error)
- func (client *MockClient) RemoveNetwork(id string) error
- func (client *MockClient) RemoveVolume(name string) error
- func (client *MockClient) RenameContainer(oldName string, newName string) error
- func (client *MockClient) RestartContainer(id string, timeout int) error
- func (client *MockClient) StartContainer(id string, config *dockerclient.HostConfig) error
- func (client *MockClient) StartMonitorEvents(cb dockerclient.Callback, ec chan error, args ...interface{})
- func (client *MockClient) StartMonitorStats(id string, cb dockerclient.StatCallback, ec chan error, args ...interface{})
- func (client *MockClient) StopAllMonitorEvents()
- func (client *MockClient) StopAllMonitorStats()
- func (client *MockClient) StopContainer(id string, timeout int) error
- func (client *MockClient) TagImage(nameOrID string, repo string, tag string, force bool) error
- func (client *MockClient) UnpauseContainer(name string) error
- func (client *MockClient) Version() (*dockerclient.Version, error)
- func (client *MockClient) Wait(id string) <-chan dockerclient.WaitResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
func NewMockClient ¶
func NewMockClient() *MockClient
func (*MockClient) AttachContainer ¶
func (client *MockClient) AttachContainer(id string, options *dockerclient.AttachOptions) (io.ReadCloser, error)
func (*MockClient) BuildImage ¶
func (client *MockClient) BuildImage(image *dockerclient.BuildImage) (io.ReadCloser, error)
func (*MockClient) ConnectNetwork ¶
func (client *MockClient) ConnectNetwork(id, container string) error
func (*MockClient) ContainerChanges ¶
func (client *MockClient) ContainerChanges(id string) ([]*dockerclient.ContainerChanges, error)
func (*MockClient) ContainerLogs ¶
func (client *MockClient) ContainerLogs(id string, options *dockerclient.LogOptions) (io.ReadCloser, error)
func (*MockClient) CreateContainer ¶
func (client *MockClient) CreateContainer(config *dockerclient.ContainerConfig, name string, authConfig *dockerclient.AuthConfig) (string, error)
func (*MockClient) CreateNetwork ¶
func (client *MockClient) CreateNetwork(config *dockerclient.NetworkCreate) (*dockerclient.NetworkCreateResponse, error)
func (*MockClient) CreateVolume ¶
func (client *MockClient) CreateVolume(request *dockerclient.VolumeCreateRequest) (*dockerclient.Volume, error)
func (*MockClient) DisconnectNetwork ¶
func (client *MockClient) DisconnectNetwork(id, container string) error
func (*MockClient) ExecCreate ¶
func (client *MockClient) ExecCreate(config *dockerclient.ExecConfig) (string, error)
func (*MockClient) ExecResize ¶
func (client *MockClient) ExecResize(id string, width, height int) error
func (*MockClient) ExecStart ¶
func (client *MockClient) ExecStart(id string, config *dockerclient.ExecConfig) error
func (*MockClient) ImportImage ¶
func (client *MockClient) ImportImage(source string, repository string, tag string, tar io.Reader) (io.ReadCloser, error)
func (*MockClient) Info ¶
func (client *MockClient) Info() (*dockerclient.Info, error)
func (*MockClient) InspectContainer ¶
func (client *MockClient) InspectContainer(id string) (*dockerclient.ContainerInfo, error)
func (*MockClient) InspectImage ¶
func (client *MockClient) InspectImage(id string) (*dockerclient.ImageInfo, error)
func (*MockClient) InspectNetwork ¶
func (client *MockClient) InspectNetwork(id string) (*dockerclient.NetworkResource, error)
func (*MockClient) KillContainer ¶
func (client *MockClient) KillContainer(id, signal string) error
func (*MockClient) ListContainers ¶
func (client *MockClient) ListContainers(all bool, size bool, filters string) ([]dockerclient.Container, error)
func (*MockClient) ListImages ¶
func (client *MockClient) ListImages(all bool) ([]*dockerclient.Image, error)
func (*MockClient) ListNetworks ¶
func (client *MockClient) ListNetworks(filters string) ([]*dockerclient.NetworkResource, error)
func (*MockClient) ListVolumes ¶
func (client *MockClient) ListVolumes() ([]*dockerclient.Volume, error)
func (*MockClient) MonitorEvents ¶
func (client *MockClient) MonitorEvents(options *dockerclient.MonitorEventsOptions, stopChan <-chan struct{}) (<-chan dockerclient.EventOrError, error)
func (*MockClient) PauseContainer ¶
func (client *MockClient) PauseContainer(name string) error
func (*MockClient) PullImage ¶
func (client *MockClient) PullImage(name string, auth *dockerclient.AuthConfig) error
func (*MockClient) PushImage ¶
func (client *MockClient) PushImage(name string, tag string, auth *dockerclient.AuthConfig) error
func (*MockClient) RemoveContainer ¶
func (client *MockClient) RemoveContainer(id string, force, volumes bool) error
func (*MockClient) RemoveImage ¶
func (client *MockClient) RemoveImage(name string, force bool) ([]*dockerclient.ImageDelete, error)
func (*MockClient) RemoveNetwork ¶
func (client *MockClient) RemoveNetwork(id string) error
func (*MockClient) RemoveVolume ¶
func (client *MockClient) RemoveVolume(name string) error
func (*MockClient) RenameContainer ¶
func (client *MockClient) RenameContainer(oldName string, newName string) error
func (*MockClient) RestartContainer ¶
func (client *MockClient) RestartContainer(id string, timeout int) error
func (*MockClient) StartContainer ¶
func (client *MockClient) StartContainer(id string, config *dockerclient.HostConfig) error
func (*MockClient) StartMonitorEvents ¶
func (client *MockClient) StartMonitorEvents(cb dockerclient.Callback, ec chan error, args ...interface{})
func (*MockClient) StartMonitorStats ¶
func (client *MockClient) StartMonitorStats(id string, cb dockerclient.StatCallback, ec chan error, args ...interface{})
func (*MockClient) StopAllMonitorEvents ¶
func (client *MockClient) StopAllMonitorEvents()
func (*MockClient) StopAllMonitorStats ¶
func (client *MockClient) StopAllMonitorStats()
func (*MockClient) StopContainer ¶
func (client *MockClient) StopContainer(id string, timeout int) error
func (*MockClient) UnpauseContainer ¶
func (client *MockClient) UnpauseContainer(name string) error
func (*MockClient) Version ¶
func (client *MockClient) Version() (*dockerclient.Version, error)
func (*MockClient) Wait ¶
func (client *MockClient) Wait(id string) <-chan dockerclient.WaitResult
Click to show internal directories.
Click to hide internal directories.