containerd

package
v25.0.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 13 Imported by: 166 modules, 193 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor is the containerd client implementation of a plugin executor

func New

func New(ctx context.Context, rootDir string, cli *containerd.Client, ns string, exitHandler ExitHandler, shim string, shimOpts interface{}) (*Executor, error)

New creates a new containerd plugin executor

func (*Executor) Create

func (e *Executor) Create(id string, spec specs.Spec, stdout, stderr io.WriteCloser) error

Create creates a new container

func (*Executor) IsRunning

func (e *Executor) IsRunning(id string) (bool, error)

IsRunning returns if the container with the given id is running

func (*Executor) ProcessEvent

ProcessEvent handles events from containerd All events are ignored except the exit event, which is sent of to the stored handler

func (*Executor) Restore

func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error)

Restore restores a container

func (*Executor) Signal

func (e *Executor) Signal(id string, signal syscall.Signal) error

Signal sends the specified signal to the container

type ExitHandler

type ExitHandler interface {
	HandleExitEvent(id string) error
}

ExitHandler represents an object that is called when the exit event is received from containerd

Jump to

Keyboard shortcuts

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