Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockContainerAPIClient
- func (m *MockContainerAPIClient) AttachContainer(ctx context.Context, container *types.Container, ...) error
- func (m *MockContainerAPIClient) CreateContainer(ctx context.Context, container *types.Container, checkpointDir string) error
- func (m *MockContainerAPIClient) DestroyContainer(ctx context.Context, container *types.Container, stopOpts *types.StopOpts, ...) (int64, time.Time, error)
- func (m *MockContainerAPIClient) Dispose(ctx context.Context) error
- func (m *MockContainerAPIClient) EXPECT() *MockContainerAPIClientMockRecorder
- func (m *MockContainerAPIClient) GetContainerInfo(ctx context.Context, id string) (*types.Container, error)
- func (m *MockContainerAPIClient) GetContainerStats(ctx context.Context, container *types.Container) (*types.CPUStats, *types.MemoryStats, *types.IOStats, uint64, time.Time, error)
- func (m *MockContainerAPIClient) ListContainers(ctx context.Context) ([]*types.Container, error)
- func (m *MockContainerAPIClient) PauseContainer(ctx context.Context, container *types.Container) error
- func (m *MockContainerAPIClient) ReleaseContainerResources(ctx context.Context, container *types.Container) error
- func (m *MockContainerAPIClient) RestoreContainer(ctx context.Context, container *types.Container) error
- func (m *MockContainerAPIClient) SetContainerExitHooks(hooks ...ctr.ContainerExitHook)
- func (m *MockContainerAPIClient) StartContainer(ctx context.Context, container *types.Container, checkpointDir string) (int64, error)
- func (m *MockContainerAPIClient) UnpauseContainer(ctx context.Context, container *types.Container) error
- func (m *MockContainerAPIClient) UpdateContainer(ctx context.Context, container *types.Container, reseources *types.Resources) error
- type MockContainerAPIClientMockRecorder
- func (mr *MockContainerAPIClientMockRecorder) AttachContainer(ctx, container, attachConfig interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) CreateContainer(ctx, container, checkpointDir interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) DestroyContainer(ctx, container, stopOpts, clearIOs interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) Dispose(ctx interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) GetContainerInfo(ctx, id interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) GetContainerStats(ctx, container interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) ListContainers(ctx interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) PauseContainer(ctx, container interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) ReleaseContainerResources(ctx, container interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) RestoreContainer(ctx, container interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) SetContainerExitHooks(hooks ...interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) StartContainer(ctx, container, checkpointDir interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) UnpauseContainer(ctx, container interface{}) *gomock.Call
- func (mr *MockContainerAPIClientMockRecorder) UpdateContainer(ctx, container interface{}, resources interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContainerAPIClient ¶
type MockContainerAPIClient struct {
// contains filtered or unexported fields
}
MockContainerAPIClient is a mock of ContainerAPIClient interface
func NewMockContainerAPIClient ¶
func NewMockContainerAPIClient(ctrl *gomock.Controller) *MockContainerAPIClient
NewMockContainerAPIClient creates a new mock instance
func (*MockContainerAPIClient) AttachContainer ¶
func (m *MockContainerAPIClient) AttachContainer(ctx context.Context, container *types.Container, attachConfig *streams.AttachConfig) error
AttachContainer mocks base method
func (*MockContainerAPIClient) CreateContainer ¶
func (m *MockContainerAPIClient) CreateContainer(ctx context.Context, container *types.Container, checkpointDir string) error
CreateContainer mocks base method
func (*MockContainerAPIClient) DestroyContainer ¶
func (m *MockContainerAPIClient) DestroyContainer(ctx context.Context, container *types.Container, stopOpts *types.StopOpts, clearIOs bool) (int64, time.Time, error)
DestroyContainer mocks base method
func (*MockContainerAPIClient) Dispose ¶
func (m *MockContainerAPIClient) Dispose(ctx context.Context) error
Dispose mocks base method
func (*MockContainerAPIClient) EXPECT ¶
func (m *MockContainerAPIClient) EXPECT() *MockContainerAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockContainerAPIClient) GetContainerInfo ¶
func (m *MockContainerAPIClient) GetContainerInfo(ctx context.Context, id string) (*types.Container, error)
GetContainerInfo mocks base method
func (*MockContainerAPIClient) GetContainerStats ¶
func (m *MockContainerAPIClient) GetContainerStats(ctx context.Context, container *types.Container) (*types.CPUStats, *types.MemoryStats, *types.IOStats, uint64, time.Time, error)
GetContainerStats mocks base method.
func (*MockContainerAPIClient) ListContainers ¶
ListContainers mocks base method
func (*MockContainerAPIClient) PauseContainer ¶
func (m *MockContainerAPIClient) PauseContainer(ctx context.Context, container *types.Container) error
PauseContainer mocks base method
func (*MockContainerAPIClient) ReleaseContainerResources ¶
func (m *MockContainerAPIClient) ReleaseContainerResources(ctx context.Context, container *types.Container) error
ReleaseContainerResources mocks base method
func (*MockContainerAPIClient) RestoreContainer ¶
func (m *MockContainerAPIClient) RestoreContainer(ctx context.Context, container *types.Container) error
RestoreContainer mocks base method
func (*MockContainerAPIClient) SetContainerExitHooks ¶
func (m *MockContainerAPIClient) SetContainerExitHooks(hooks ...ctr.ContainerExitHook)
SetContainerExitHooks mocks base method
func (*MockContainerAPIClient) StartContainer ¶
func (m *MockContainerAPIClient) StartContainer(ctx context.Context, container *types.Container, checkpointDir string) (int64, error)
StartContainer mocks base method
func (*MockContainerAPIClient) UnpauseContainer ¶
func (m *MockContainerAPIClient) UnpauseContainer(ctx context.Context, container *types.Container) error
UnpauseContainer mocks base method
func (*MockContainerAPIClient) UpdateContainer ¶
func (m *MockContainerAPIClient) UpdateContainer(ctx context.Context, container *types.Container, reseources *types.Resources) error
UpdateContainer mocks base method
type MockContainerAPIClientMockRecorder ¶
type MockContainerAPIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockContainerAPIClientMockRecorder is the mock recorder for MockContainerAPIClient
func (*MockContainerAPIClientMockRecorder) AttachContainer ¶
func (mr *MockContainerAPIClientMockRecorder) AttachContainer(ctx, container, attachConfig interface{}) *gomock.Call
AttachContainer indicates an expected call of AttachContainer
func (*MockContainerAPIClientMockRecorder) CreateContainer ¶
func (mr *MockContainerAPIClientMockRecorder) CreateContainer(ctx, container, checkpointDir interface{}) *gomock.Call
CreateContainer indicates an expected call of CreateContainer
func (*MockContainerAPIClientMockRecorder) DestroyContainer ¶
func (mr *MockContainerAPIClientMockRecorder) DestroyContainer(ctx, container, stopOpts, clearIOs interface{}) *gomock.Call
DestroyContainer indicates an expected call of DestroyContainer
func (*MockContainerAPIClientMockRecorder) Dispose ¶
func (mr *MockContainerAPIClientMockRecorder) Dispose(ctx interface{}) *gomock.Call
Dispose indicates an expected call of Dispose
func (*MockContainerAPIClientMockRecorder) GetContainerInfo ¶
func (mr *MockContainerAPIClientMockRecorder) GetContainerInfo(ctx, id interface{}) *gomock.Call
GetContainerInfo indicates an expected call of GetContainerInfo
func (*MockContainerAPIClientMockRecorder) GetContainerStats ¶
func (mr *MockContainerAPIClientMockRecorder) GetContainerStats(ctx, container interface{}) *gomock.Call
GetContainerStats indicates an expected call of GetContainerStats.
func (*MockContainerAPIClientMockRecorder) ListContainers ¶
func (mr *MockContainerAPIClientMockRecorder) ListContainers(ctx interface{}) *gomock.Call
ListContainers indicates an expected call of ListContainers
func (*MockContainerAPIClientMockRecorder) PauseContainer ¶
func (mr *MockContainerAPIClientMockRecorder) PauseContainer(ctx, container interface{}) *gomock.Call
PauseContainer indicates an expected call of PauseContainer
func (*MockContainerAPIClientMockRecorder) ReleaseContainerResources ¶
func (mr *MockContainerAPIClientMockRecorder) ReleaseContainerResources(ctx, container interface{}) *gomock.Call
ReleaseContainerResources indicates an expected call of ReleaseContainerResources
func (*MockContainerAPIClientMockRecorder) RestoreContainer ¶
func (mr *MockContainerAPIClientMockRecorder) RestoreContainer(ctx, container interface{}) *gomock.Call
RestoreContainer indicates an expected call of RestoreContainer
func (*MockContainerAPIClientMockRecorder) SetContainerExitHooks ¶
func (mr *MockContainerAPIClientMockRecorder) SetContainerExitHooks(hooks ...interface{}) *gomock.Call
SetContainerExitHooks indicates an expected call of SetContainerExitHooks
func (*MockContainerAPIClientMockRecorder) StartContainer ¶
func (mr *MockContainerAPIClientMockRecorder) StartContainer(ctx, container, checkpointDir interface{}) *gomock.Call
StartContainer indicates an expected call of StartContainer
func (*MockContainerAPIClientMockRecorder) UnpauseContainer ¶
func (mr *MockContainerAPIClientMockRecorder) UnpauseContainer(ctx, container interface{}) *gomock.Call
UnpauseContainer indicates an expected call of UnpauseContainer
func (*MockContainerAPIClientMockRecorder) UpdateContainer ¶
func (mr *MockContainerAPIClientMockRecorder) UpdateContainer(ctx, container interface{}, resources interface{}) *gomock.Call
UpdateContainer indicates an expected call of UpdateContainer