Documentation ¶
Index ¶
- type FakeDockerClient
- func (d *FakeDockerClient) AttachToContainerNonBlocking(opts docker.AttachToContainerOptions) (docker.CloseWaiter, error)
- func (d *FakeDockerClient) BuildImage(opts docker.BuildImageOptions) error
- func (d *FakeDockerClient) CommitContainer(opts docker.CommitContainerOptions) (*docker.Image, error)
- func (d *FakeDockerClient) CopyFromContainer(opts docker.CopyFromContainerOptions) error
- func (d *FakeDockerClient) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
- func (d *FakeDockerClient) InspectContainer(id string) (*docker.Container, error)
- func (d *FakeDockerClient) InspectImage(name string) (*docker.Image, error)
- func (d *FakeDockerClient) Ping() error
- func (d *FakeDockerClient) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
- func (d *FakeDockerClient) RemoveContainer(opts docker.RemoveContainerOptions) error
- func (d *FakeDockerClient) RemoveImage(name string) error
- func (d *FakeDockerClient) StartContainer(id string, hostConfig *docker.HostConfig) error
- func (d *FakeDockerClient) UploadToContainer(id string, opts docker.UploadToContainerOptions) error
- func (d *FakeDockerClient) WaitContainer(id string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDockerClient ¶
type FakeDockerClient struct { Image *docker.Image InspectImageResult []*docker.Image Container *docker.Container RemoveImageErr error InspectImageErr []error PullImageErr error CreateContainerErr error AttachToContainerErr error StartContainerErr error WaitContainerResult int WaitContainerErr error RemoveContainerErr error CommitContainerErr error CopyFromContainerErr error BuildImageErr error RemoveImageName string InspectImageName []string PullImageOpts docker.PullImageOptions PullImageAuth docker.AuthConfiguration CreateContainerOpts docker.CreateContainerOptions AttachToContainerOpts []docker.AttachToContainerOptions StartContainerID string StartContainerHostConfig *docker.HostConfig WaitContainerID string RemoveContainerOpts docker.RemoveContainerOptions CommitContainerOpts docker.CommitContainerOptions CopyFromContainerOpts docker.CopyFromContainerOptions BuildImageOpts docker.BuildImageOptions }
FakeDockerClient provides a Fake client for Docker testing
func (*FakeDockerClient) AttachToContainerNonBlocking ¶ added in v1.0.6
func (d *FakeDockerClient) AttachToContainerNonBlocking(opts docker.AttachToContainerOptions) (docker.CloseWaiter, error)
func (*FakeDockerClient) BuildImage ¶
func (d *FakeDockerClient) BuildImage(opts docker.BuildImageOptions) error
BuildImage builds image
func (*FakeDockerClient) CommitContainer ¶
func (d *FakeDockerClient) CommitContainer(opts docker.CommitContainerOptions) (*docker.Image, error)
CommitContainer commits the fake container
func (*FakeDockerClient) CopyFromContainer ¶
func (d *FakeDockerClient) CopyFromContainer(opts docker.CopyFromContainerOptions) error
CopyFromContainer copies from the fake container
func (*FakeDockerClient) CreateContainer ¶
func (d *FakeDockerClient) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
CreateContainer creates a fake container
func (*FakeDockerClient) InspectContainer ¶ added in v1.0.2
func (d *FakeDockerClient) InspectContainer(id string) (*docker.Container, error)
func (*FakeDockerClient) InspectImage ¶
func (d *FakeDockerClient) InspectImage(name string) (*docker.Image, error)
InspectImage inspects the fake image
func (*FakeDockerClient) Ping ¶ added in v1.0.4
func (d *FakeDockerClient) Ping() error
func (*FakeDockerClient) PullImage ¶
func (d *FakeDockerClient) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
PullImage pulls the fake image
func (*FakeDockerClient) RemoveContainer ¶
func (d *FakeDockerClient) RemoveContainer(opts docker.RemoveContainerOptions) error
RemoveContainer removes the fake container
func (*FakeDockerClient) RemoveImage ¶
func (d *FakeDockerClient) RemoveImage(name string) error
RemoveImage removes an image from the fake client
func (*FakeDockerClient) StartContainer ¶
func (d *FakeDockerClient) StartContainer(id string, hostConfig *docker.HostConfig) error
StartContainer starts the fake container
func (*FakeDockerClient) UploadToContainer ¶ added in v1.0.5
func (d *FakeDockerClient) UploadToContainer(id string, opts docker.UploadToContainerOptions) error
func (*FakeDockerClient) WaitContainer ¶
func (d *FakeDockerClient) WaitContainer(id string) (int, error)
WaitContainer waits for a fake container to finish
Click to show internal directories.
Click to hide internal directories.