Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: container.go
Generated by this command:
mockgen -source=container.go -destination=mocks/container.go
Package mock_docker is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: exec.go
Generated by this command:
mockgen -source=exec.go -destination=mocks/exec.go
Package mock_docker is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: image.go
Generated by this command:
mockgen -source=image.go -destination=mocks/image.go
Package mock_docker is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: io_streamer.go
Generated by this command:
mockgen -source=io_streamer.go -destination=mocks/io_streamer.go
Package mock_docker is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: wrapper.go
Generated by this command:
mockgen -source=wrapper.go -destination=mocks/wrapper.go
Package mock_docker is a generated GoMock package.
Index ¶
- type MockContainer
- func (m *MockContainer) AttachIO(ctx context.Context, w docker.Wrapper) (docker.IOStreamer, error)
- func (m *MockContainer) Create(ctx context.Context, w docker.Wrapper) error
- func (m *MockContainer) EXPECT() *MockContainerMockRecorder
- func (m *MockContainer) Exec(ctx context.Context, w docker.Wrapper, cmd docker.Command) (docker.Exec, error)
- func (m *MockContainer) ID() string
- func (m *MockContainer) Inspect(ctx context.Context, w docker.Wrapper) (types.ContainerJSON, error)
- func (m *MockContainer) Remove(ctx context.Context, w docker.Wrapper) error
- func (m *MockContainer) Start(ctx context.Context, w docker.Wrapper, timeout time.Duration) error
- func (m *MockContainer) Stop(ctx context.Context, w docker.Wrapper) error
- func (m *MockContainer) Wait(ctx context.Context, w docker.Wrapper) error
- type MockContainerMockRecorder
- func (mr *MockContainerMockRecorder) AttachIO(ctx, w any) *gomock.Call
- func (mr *MockContainerMockRecorder) Create(ctx, w any) *gomock.Call
- func (mr *MockContainerMockRecorder) Exec(ctx, w, cmd any) *gomock.Call
- func (mr *MockContainerMockRecorder) ID() *gomock.Call
- func (mr *MockContainerMockRecorder) Inspect(ctx, w any) *gomock.Call
- func (mr *MockContainerMockRecorder) Remove(ctx, w any) *gomock.Call
- func (mr *MockContainerMockRecorder) Start(ctx, w, timeout any) *gomock.Call
- func (mr *MockContainerMockRecorder) Stop(ctx, w any) *gomock.Call
- func (mr *MockContainerMockRecorder) Wait(ctx, w any) *gomock.Call
- type MockExec
- type MockExecMockRecorder
- type MockIOStreamer
- type MockIOStreamerMockRecorder
- type MockImage
- type MockImageMockRecorder
- type MockWrapper
- func (m *MockWrapper) Cli() client.APIClient
- func (m *MockWrapper) ContainerCreate(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)
- func (m *MockWrapper) ContainerStart(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)
- func (m *MockWrapper) EXPECT() *MockWrapperMockRecorder
- func (m *MockWrapper) Err() io.Writer
- func (m *MockWrapper) In() io.Reader
- func (m *MockWrapper) Logger() *zap.Logger
- func (m *MockWrapper) Out() io.Writer
- type MockWrapperMockRecorder
- func (mr *MockWrapperMockRecorder) Cli() *gomock.Call
- func (mr *MockWrapperMockRecorder) ContainerCreate(ctx, cfg any) *gomock.Call
- func (mr *MockWrapperMockRecorder) ContainerStart(ctx, cfg any) *gomock.Call
- func (mr *MockWrapperMockRecorder) Err() *gomock.Call
- func (mr *MockWrapperMockRecorder) In() *gomock.Call
- func (mr *MockWrapperMockRecorder) Logger() *gomock.Call
- func (mr *MockWrapperMockRecorder) Out() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContainer ¶
type MockContainer struct {
// contains filtered or unexported fields
}
MockContainer is a mock of Container interface.
func NewMockContainer ¶
func NewMockContainer(ctrl *gomock.Controller) *MockContainer
NewMockContainer creates a new mock instance.
func (*MockContainer) AttachIO ¶
func (m *MockContainer) AttachIO(ctx context.Context, w docker.Wrapper) (docker.IOStreamer, error)
AttachIO mocks base method.
func (*MockContainer) EXPECT ¶
func (m *MockContainer) EXPECT() *MockContainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContainer) Exec ¶
func (m *MockContainer) Exec(ctx context.Context, w docker.Wrapper, cmd docker.Command) (docker.Exec, error)
Exec mocks base method.
func (*MockContainer) Inspect ¶
func (m *MockContainer) Inspect(ctx context.Context, w docker.Wrapper) (types.ContainerJSON, error)
Inspect mocks base method.
type MockContainerMockRecorder ¶
type MockContainerMockRecorder struct {
// contains filtered or unexported fields
}
MockContainerMockRecorder is the mock recorder for MockContainer.
func (*MockContainerMockRecorder) AttachIO ¶
func (mr *MockContainerMockRecorder) AttachIO(ctx, w any) *gomock.Call
AttachIO indicates an expected call of AttachIO.
func (*MockContainerMockRecorder) Create ¶
func (mr *MockContainerMockRecorder) Create(ctx, w any) *gomock.Call
Create indicates an expected call of Create.
func (*MockContainerMockRecorder) Exec ¶
func (mr *MockContainerMockRecorder) Exec(ctx, w, cmd any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockContainerMockRecorder) ID ¶
func (mr *MockContainerMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockContainerMockRecorder) Inspect ¶
func (mr *MockContainerMockRecorder) Inspect(ctx, w any) *gomock.Call
Inspect indicates an expected call of Inspect.
func (*MockContainerMockRecorder) Remove ¶
func (mr *MockContainerMockRecorder) Remove(ctx, w any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockContainerMockRecorder) Start ¶
func (mr *MockContainerMockRecorder) Start(ctx, w, timeout any) *gomock.Call
Start indicates an expected call of Start.
type MockExec ¶
type MockExec struct {
// contains filtered or unexported fields
}
MockExec is a mock of Exec interface.
func NewMockExec ¶
func NewMockExec(ctrl *gomock.Controller) *MockExec
NewMockExec creates a new mock instance.
func (*MockExec) EXPECT ¶
func (m *MockExec) EXPECT() *MockExecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExecMockRecorder ¶
type MockExecMockRecorder struct {
// contains filtered or unexported fields
}
MockExecMockRecorder is the mock recorder for MockExec.
func (*MockExecMockRecorder) AttachIO ¶
func (mr *MockExecMockRecorder) AttachIO(ctx, w any) *gomock.Call
AttachIO indicates an expected call of AttachIO.
type MockIOStreamer ¶
type MockIOStreamer struct {
// contains filtered or unexported fields
}
MockIOStreamer is a mock of IOStreamer interface.
func NewMockIOStreamer ¶
func NewMockIOStreamer(ctrl *gomock.Controller) *MockIOStreamer
NewMockIOStreamer creates a new mock instance.
func (*MockIOStreamer) EXPECT ¶
func (m *MockIOStreamer) EXPECT() *MockIOStreamerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIOStreamerMockRecorder ¶
type MockIOStreamerMockRecorder struct {
// contains filtered or unexported fields
}
MockIOStreamerMockRecorder is the mock recorder for MockIOStreamer.
func (*MockIOStreamerMockRecorder) Start ¶
func (mr *MockIOStreamerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
type MockImage ¶
type MockImage struct {
// contains filtered or unexported fields
}
MockImage is a mock of Image interface.
func NewMockImage ¶
func NewMockImage(ctrl *gomock.Controller) *MockImage
NewMockImage creates a new mock instance.
func (*MockImage) EXPECT ¶
func (m *MockImage) EXPECT() *MockImageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockImageMockRecorder ¶
type MockImageMockRecorder struct {
// contains filtered or unexported fields
}
MockImageMockRecorder is the mock recorder for MockImage.
type MockWrapper ¶
type MockWrapper struct {
// contains filtered or unexported fields
}
MockWrapper is a mock of Wrapper interface.
func NewMockWrapper ¶
func NewMockWrapper(ctrl *gomock.Controller) *MockWrapper
NewMockWrapper creates a new mock instance.
func (*MockWrapper) ContainerCreate ¶
func (m *MockWrapper) ContainerCreate(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)
ContainerCreate mocks base method.
func (*MockWrapper) ContainerStart ¶
func (m *MockWrapper) ContainerStart(ctx context.Context, cfg docker.ContainerConfig) (docker.Container, error)
ContainerStart mocks base method.
func (*MockWrapper) EXPECT ¶
func (m *MockWrapper) EXPECT() *MockWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWrapperMockRecorder ¶
type MockWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockWrapperMockRecorder is the mock recorder for MockWrapper.
func (*MockWrapperMockRecorder) Cli ¶
func (mr *MockWrapperMockRecorder) Cli() *gomock.Call
Cli indicates an expected call of Cli.
func (*MockWrapperMockRecorder) ContainerCreate ¶
func (mr *MockWrapperMockRecorder) ContainerCreate(ctx, cfg any) *gomock.Call
ContainerCreate indicates an expected call of ContainerCreate.
func (*MockWrapperMockRecorder) ContainerStart ¶
func (mr *MockWrapperMockRecorder) ContainerStart(ctx, cfg any) *gomock.Call
ContainerStart indicates an expected call of ContainerStart.
func (*MockWrapperMockRecorder) Err ¶
func (mr *MockWrapperMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockWrapperMockRecorder) In ¶
func (mr *MockWrapperMockRecorder) In() *gomock.Call
In indicates an expected call of In.
func (*MockWrapperMockRecorder) Logger ¶
func (mr *MockWrapperMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger.
func (*MockWrapperMockRecorder) Out ¶
func (mr *MockWrapperMockRecorder) Out() *gomock.Call
Out indicates an expected call of Out.