Documentation ¶
Index ¶
- type FakeDockerAddr
- type FakeDockerClient
- func (d *FakeDockerClient) ContainerAttach(ctx context.Context, container string, ...) (dockertypes.HijackedResponse, error)
- func (d *FakeDockerClient) ContainerCommit(ctx context.Context, container string, ...) (dockertypes.ContainerCommitResponse, error)
- func (d *FakeDockerClient) ContainerWait(ctx context.Context, containerID string) (int, error)
- func (d *FakeDockerClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, dockertypes.ContainerPathStat, error)
- func (d *FakeDockerClient) CopyToContainer(ctx context.Context, container, path string, content io.Reader, ...) error
- func (d *FakeDockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, ...) (dockertypes.ImageBuildResponse, error)
- func (d *FakeDockerClient) Ping() error
- type FakeDockerConn
- func (c FakeDockerConn) Close() error
- func (c FakeDockerConn) LocalAddr() net.Addr
- func (c FakeDockerConn) Read(b []byte) (n int, err error)
- func (c FakeDockerConn) RemoteAddr() net.Addr
- func (c FakeDockerConn) SetDeadline(t time.Time) error
- func (c FakeDockerConn) SetReadDeadline(t time.Time) error
- func (c FakeDockerConn) SetWriteDeadline(t time.Time) error
- func (c FakeDockerConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDockerAddr ¶ added in v1.1.2
type FakeDockerAddr struct { }
func (FakeDockerAddr) Network ¶ added in v1.1.2
func (a FakeDockerAddr) Network() string
func (FakeDockerAddr) String ¶ added in v1.1.2
func (a FakeDockerAddr) String() string
type FakeDockerClient ¶
type FakeDockerClient struct { CopyToContainerID string CopyToContainerPath string CopyToContainerContent io.Reader CopyFromContainerID string CopyFromContainerPath string CopyFromContainerErr error WaitContainerID string WaitContainerResult int WaitContainerErr error ContainerCommitID string ContainerCommitOptions dockertypes.ContainerCommitOptions ContainerCommitResponse dockertypes.ContainerCommitResponse ContainerCommitErr error BuildImageOpts dockertypes.ImageBuildOptions BuildImageErr error }
FakeDockerClient provides a Fake client for Docker testing, but for our direct access to the engine-api client; we leverage the FakeDockerClient defined in k8s when we leverage the k8s layer
func (*FakeDockerClient) ContainerAttach ¶ added in v1.1.2
func (d *FakeDockerClient) ContainerAttach(ctx context.Context, container string, options dockertypes.ContainerAttachOptions) (dockertypes.HijackedResponse, error)
func (*FakeDockerClient) ContainerCommit ¶ added in v1.1.2
func (d *FakeDockerClient) ContainerCommit(ctx context.Context, container string, options dockertypes.ContainerCommitOptions) (dockertypes.ContainerCommitResponse, error)
func (*FakeDockerClient) ContainerWait ¶ added in v1.1.2
func (*FakeDockerClient) CopyFromContainer ¶
func (d *FakeDockerClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, dockertypes.ContainerPathStat, error)
func (*FakeDockerClient) CopyToContainer ¶ added in v1.1.2
func (d *FakeDockerClient) CopyToContainer(ctx context.Context, container, path string, content io.Reader, opts dockertypes.CopyToContainerOptions) error
func (*FakeDockerClient) ImageBuild ¶ added in v1.1.2
func (d *FakeDockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, options dockertypes.ImageBuildOptions) (dockertypes.ImageBuildResponse, error)
func (*FakeDockerClient) Ping ¶ added in v1.0.4
func (d *FakeDockerClient) Ping() error
type FakeDockerConn ¶ added in v1.1.2
type FakeDockerConn struct { }
func (FakeDockerConn) Close ¶ added in v1.1.2
func (c FakeDockerConn) Close() error
func (FakeDockerConn) LocalAddr ¶ added in v1.1.2
func (c FakeDockerConn) LocalAddr() net.Addr
func (FakeDockerConn) Read ¶ added in v1.1.2
func (c FakeDockerConn) Read(b []byte) (n int, err error)
func (FakeDockerConn) RemoteAddr ¶ added in v1.1.2
func (c FakeDockerConn) RemoteAddr() net.Addr
func (FakeDockerConn) SetDeadline ¶ added in v1.1.2
func (c FakeDockerConn) SetDeadline(t time.Time) error
func (FakeDockerConn) SetReadDeadline ¶ added in v1.1.2
func (c FakeDockerConn) SetReadDeadline(t time.Time) error
func (FakeDockerConn) SetWriteDeadline ¶ added in v1.1.2
func (c FakeDockerConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.