Documentation ¶
Index ¶
- type Executor
- 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) ProcessEvent(id string, et libcontainerdtypes.EventType, ei libcontainerdtypes.EventInfo) error
- func (e *Executor) Restore(id string, stdout, stderr io.WriteCloser) (bool, error)
- func (e *Executor) Signal(id string, signal syscall.Signal) error
- type ExitHandler
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) ProcessEvent ¶
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
type ExitHandler ¶
ExitHandler represents an object that is called when the exit event is received from containerd
Click to show internal directories.
Click to hide internal directories.