github.com/lazyboychen7/engine@v17.12.1-ce-rc2+incompatible/libcontainerd/types_linux.go (about) 1 package libcontainerd 2 3 import ( 4 "time" 5 6 "github.com/containerd/cgroups" 7 specs "github.com/opencontainers/runtime-spec/specs-go" 8 ) 9 10 // Summary is not used on linux 11 type Summary struct{} 12 13 // Stats holds metrics properties as returned by containerd 14 type Stats struct { 15 Read time.Time 16 Metrics *cgroups.Metrics 17 } 18 19 func interfaceToStats(read time.Time, v interface{}) *Stats { 20 return &Stats{ 21 Metrics: v.(*cgroups.Metrics), 22 Read: read, 23 } 24 } 25 26 // Resources defines updatable container resource values. TODO: it must match containerd upcoming API 27 type Resources specs.LinuxResources 28 29 // Checkpoints contains the details of a checkpoint 30 type Checkpoints struct{}