github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/libcontainerd/types/types_linux.go (about) 1 package types // import "github.com/demonoid81/moby/libcontainerd/types" 2 3 import ( 4 "time" 5 6 specs "github.com/opencontainers/runtime-spec/specs-go" 7 ) 8 9 // Summary is not used on linux 10 type Summary struct{} 11 12 // Stats holds metrics properties as returned by containerd 13 type Stats struct { 14 Read time.Time 15 // Metrics is expected to be either one of: 16 // * github.com/containerd/cgroups/stats/v1.Metrics 17 // * github.com/containerd/cgroups/stats/v2.Metrics 18 Metrics interface{} 19 } 20 21 // InterfaceToStats returns a stats object from the platform-specific interface. 22 func InterfaceToStats(read time.Time, v interface{}) *Stats { 23 return &Stats{ 24 Metrics: v, 25 Read: read, 26 } 27 } 28 29 // Resources defines updatable container resource values. TODO: it must match containerd upcoming API 30 type Resources specs.LinuxResources 31 32 // Checkpoints contains the details of a checkpoint 33 type Checkpoints struct{}