Refactor checkpoint information

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-12-04 14:00:07 -08:00
parent e21364603e
commit 9eb08b8971
10 changed files with 85 additions and 44 deletions

View file

@ -32,8 +32,6 @@ type Stdio struct {
type Checkpoint struct {
// Timestamp is the time that checkpoint happened
Timestamp time.Time `json:"timestamp,omitempty"`
// Path is the custom path to the checkpoint, this is optional
Path string `json:"path,omitempty"`
// Name is the name of the checkpoint
Name string `json:"name,omitempty"`
// Tcp checkpoints open tcp connections
@ -74,5 +72,7 @@ type Container interface {
Checkpoint(Checkpoint) error
Restore(path, name string) error
DeleteCheckpoint(name string) error
Restore(name string) error
}