14 lines
259 B
Go
14 lines
259 B
Go
|
package containerd
|
||
|
|
||
|
type CreateCheckpointEvent struct {
|
||
|
s *Supervisor
|
||
|
}
|
||
|
|
||
|
func (h *CreateCheckpointEvent) Handle(e *Event) error {
|
||
|
container, ok := h.s.containers[e.ID]
|
||
|
if !ok {
|
||
|
return ErrContainerNotFound
|
||
|
}
|
||
|
return container.Checkpoint(*e.Checkpoint)
|
||
|
}
|