test

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 (*FakeDockerClient) ContainerCommit added in v1.1.2

func (*FakeDockerClient) ContainerWait added in v1.1.2

func (d *FakeDockerClient) ContainerWait(ctx context.Context, containerID string) (int, error)

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 (*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

func (FakeDockerConn) Write added in v1.1.2

func (c FakeDockerConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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