Documentation ¶
Index ¶
- type PodmanClient
- func (s *PodmanClient) Close() error
- func (s *PodmanClient) CreateContainer(ctx context.Context, id cproto.ID, req cproto.RunSpec, ...) (string, error)
- func (s *PodmanClient) ListRunningContainers(ctx context.Context, fs filters.Args) (map[cproto.ID]types.Container, error)
- func (s *PodmanClient) PullImage(ctx context.Context, req docker.PullImage, p events.Publisher[docker.Event]) (err error)
- func (s *PodmanClient) ReattachContainer(ctx context.Context, reattachID cproto.ID) (*docker.Container, *aproto.ExitCode, error)
- func (s *PodmanClient) RemoveContainer(ctx context.Context, id string, force bool) error
- func (s *PodmanClient) RunContainer(ctx context.Context, waitCtx context.Context, id string, ...) (*docker.Container, error)
- func (s *PodmanClient) SignalContainer(ctx context.Context, id string, sig syscall.Signal) error
- type PodmanContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodmanClient ¶
type PodmanClient struct {
// contains filtered or unexported fields
}
PodmanClient implements ContainerRuntime.
func New ¶
func New(opts options.Options) (*PodmanClient, error)
New returns a new podman client, which launches and tracks containers.
func (*PodmanClient) Close ¶
func (s *PodmanClient) Close() error
Close the client, killing all running containers and removing our scratch space.
func (*PodmanClient) CreateContainer ¶
func (s *PodmanClient) CreateContainer( ctx context.Context, id cproto.ID, req cproto.RunSpec, p events.Publisher[docker.Event], ) (string, error)
CreateContainer implements container.ContainerRuntime.
func (*PodmanClient) ListRunningContainers ¶
func (s *PodmanClient) ListRunningContainers( ctx context.Context, fs filters.Args, ) (map[cproto.ID]types.Container, error)
ListRunningContainers implements container.ContainerRuntime.
func (*PodmanClient) PullImage ¶
func (s *PodmanClient) PullImage( ctx context.Context, req docker.PullImage, p events.Publisher[docker.Event], ) (err error)
PullImage implements container.ContainerRuntime.
func (*PodmanClient) ReattachContainer ¶
func (s *PodmanClient) ReattachContainer( ctx context.Context, reattachID cproto.ID, ) (*docker.Container, *aproto.ExitCode, error)
ReattachContainer implements container.ContainerRuntime. TODO(DET-9082): Ensure orphaned processes are cleaned up on reattach.
func (*PodmanClient) RemoveContainer ¶
RemoveContainer implements container.ContainerRuntime.
func (*PodmanClient) RunContainer ¶
func (s *PodmanClient) RunContainer( ctx context.Context, waitCtx context.Context, id string, p events.Publisher[docker.Event], ) (*docker.Container, error)
RunContainer implements container.ContainerRuntime. nolint: golint,maintidx // Both contexts can't both be first / TODO refactor.
func (*PodmanClient) SignalContainer ¶
SignalContainer implements container.ContainerRuntime.