containerd/checkpoint.go
Michael Crosby ae9b2bafd5 Add basic checkpoint and restore support
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-03 16:07:53 -08:00

13 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)
}