1package libcontainerd
2
3import (
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
11type Summary struct{}
12
13// Stats holds metrics properties as returned by containerd
14type Stats struct {
15	Read    time.Time
16	Metrics *cgroups.Metrics
17}
18
19func 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
27type Resources specs.LinuxResources
28
29// Checkpoints contains the details of a checkpoint
30type Checkpoints struct{}
31