github.com/devdivbcp/moby@v17.12.0-ce-rc1.0.20200726071732-2d4bfdc789ad+incompatible/libcontainerd/types/types_linux.go (about) 1 package types // import "github.com/docker/docker/libcontainerd/types" 2 3 import ( 4 "time" 5 6 statsV1 "github.com/containerd/cgroups/stats/v1" 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 *statsV1.Metrics 17 } 18 19 // InterfaceToStats returns a stats object from the platform-specific interface. 20 func InterfaceToStats(read time.Time, v interface{}) *Stats { 21 return &Stats{ 22 Metrics: v.(*statsV1.Metrics), 23 Read: read, 24 } 25 } 26 27 // Resources defines updatable container resource values. TODO: it must match containerd upcoming API 28 type Resources specs.LinuxResources 29 30 // Checkpoints contains the details of a checkpoint 31 type Checkpoints struct{}