package containerd
import "github.com/docker/cli/components/engine/plugin/executor/containerd"
Index ¶
- type Executor
- func New(remote libcontainerd.Remote, exitHandler ExitHandler) (*Executor, error)
- func (e *Executor) Create(id string, spec specs.Spec, stdout, stderr io.WriteCloser) error
- func (e *Executor) IsRunning(id string) (bool, error)
- func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) error
- func (e *Executor) Signal(id string, signal int) error
- func (e *Executor) StateChanged(id string, event libcontainerd.StateInfo) error
- type ExitHandler
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(remote libcontainerd.Remote, exitHandler ExitHandler) (*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 ¶
IsRunning returns if the container with the given id is running
func (*Executor) Restore ¶
func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) error
Restore restores a container
func (*Executor) Signal ¶
Signal sends the specified signal to the container
func (*Executor) StateChanged ¶
func (e *Executor) StateChanged(id string, event libcontainerd.StateInfo) error
StateChanged handles state changes from containerd All events are ignored except the exit event, which is sent of to the stored handler
type ExitHandler ¶
ExitHandler represents an object that is called when the exit event is received from containerd
Source Files ¶
- Version
- v17.10.0-ce+incompatible
- Published
- Oct 17, 2017
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 3 minutes ago –
Tools for package owners.