test

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 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 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) Labels

func (m *MockContainer) Labels(ctx context.Context) (map[string]string, error)

func (*MockContainer) Task

type MockTask

type MockTask struct {
	containerd.Task
}

func (*MockTask) Kill

func (*MockTask) Pid

func (m *MockTask) Pid() uint32

Jump to

Keyboard shortcuts

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