Timestamp added to container object.

Fix for #912

Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
This commit is contained in:
Kunal Kushwaha
2017-05-29 10:10:12 +09:00
parent 4ae34cccc5
commit 0008ac7f3d
5 changed files with 186 additions and 60 deletions

View File

@@ -1,18 +1,23 @@
package containers
import "context"
import (
"context"
"time"
)
// Container represents the set of data pinned by a container. Unless otherwise
// noted, the resources here are considered in use by the container.
//
// The resources specified in this object are used to create tasks from the container.
type Container struct {
ID string
Labels map[string]string
Image string
Runtime string
Spec []byte
RootFS string
ID string
Labels map[string]string
Image string
Runtime string
Spec []byte
RootFS string
CreatedAt time.Time
UpdatedAt time.Time
}
type Store interface {