import "github.com/docker/docker/plugin/executor/containerd"
const PluginNamespace = "plugins.moby"
PluginNamespace is the name used for the plugins namespace
type Executor struct {
// contains filtered or unexported fields
}
Executor is the containerd client implementation of a plugin executor
func New(ctx context.Context, rootDir string, cli *containerd.Client, ns string, exitHandler ExitHandler, runtime types.Runtime) (*Executor, error)
New creates a new containerd plugin executor
Create creates a new container
IsRunning returns if the container with the given id is running
func (e *Executor) ProcessEvent(id string, et libcontainerdtypes.EventType, ei libcontainerdtypes.EventInfo) error
ProcessEvent handles events from containerd All events are ignored except the exit event, which is sent of to the stored handler
Restore restores a container
Signal sends the specified signal to the container
ExitHandler represents an object that is called when the exit event is received from containerd
Package containerd imports 12 packages (graph) and is imported by 29 packages. Updated 2020-07-26. Refresh now. Tools for package owners.