{"modulePath":"github.com/mudler/moby","version":"v17.12.1-ce-rc2+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package containerd\n\n## Variables\n\n```go\nvar 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(rootDir string, remote libcontainerd.Remote, exitHandler ExitHandler) (*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 libcontainerd.EventType, ei libcontainerd.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) 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/mudler/moby/plugin/executor/containerd","name":"containerd","synopsis":"","isRedistributable":true}
