{"modulePath":"github.com/vvoland/moby","version":"v20.10.15+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package containerd\n\n## Constants\n\n```go\nconst PluginNamespace = \"plugins.moby\"\n```\nPluginNamespace is the name used for the plugins namespace\n\n## Types\n\n```go\ntype Executor struct {\n\t// contains filtered or unexported fields\n}\n```\nExecutor is the containerd client implementation of a plugin executor\n\n```go\nfunc New(ctx context.Context, rootDir string, cli *containerd.Client, ns string, exitHandler ExitHandler, runtime types.Runtime) (*Executor, error)\n```\nNew creates a new containerd plugin executor\n\n```go\nfunc (e *Executor) Create(id string, spec specs.Spec, stdout, stderr io.WriteCloser) error\n```\nCreate creates a new container\n\n```go\nfunc (e *Executor) IsRunning(id string) (bool, error)\n```\nIsRunning returns if the container with the given id is running\n\n```go\nfunc (e *Executor) ProcessEvent(id string, et libcontainerdtypes.EventType, ei libcontainerdtypes.EventInfo) error\n```\nProcessEvent handles events from containerd All events are ignored except the exit event, which is sent of to the stored handler\n\n```go\nfunc (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error)\n```\nRestore restores a container\n\n```go\nfunc (e *Executor) Signal(id string, signal int) error\n```\nSignal sends the specified signal to the container\n\n```go\ntype ExitHandler interface {\n\tHandleExitEvent(id string) error\n}\n```\nExitHandler represents an object that is called when the exit event is received from containerd\n\n","path":"github.com/vvoland/moby/plugin/executor/containerd","name":"containerd","synopsis":"","isRedistributable":true}
