Documentation ¶
Index ¶
- type MockClient
- func (m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (m *MockClient) ContainerKill(ctx context.Context, containerID, signal string) error
- func (m *MockClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (m *MockClient) Containers(ctx context.Context, filters ...string) ([]containerd.Container, error)
- func (m *MockClient) LoadContainer(ctx context.Context, id string) (containerd.Container, error)
- type MockContainer
- type MockTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct{}
func (*MockClient) ContainerInspect ¶
func (m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
func (*MockClient) ContainerKill ¶
func (m *MockClient) ContainerKill(ctx context.Context, containerID, signal string) error
func (*MockClient) ContainerList ¶
func (m *MockClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
func (*MockClient) Containers ¶
func (m *MockClient) Containers(ctx context.Context, filters ...string) ([]containerd.Container, error)
func (*MockClient) LoadContainer ¶
func (m *MockClient) LoadContainer(ctx context.Context, id string) (containerd.Container, error)
type MockContainer ¶
type MockContainer struct {
containerd.Container
}
func (*MockContainer) ID ¶
func (m *MockContainer) ID() string
func (*MockContainer) Task ¶
func (m *MockContainer) Task(context.Context, cio.Attach) (containerd.Task, error)
Click to show internal directories.
Click to hide internal directories.