12345678910111213141516171819202122232425262728293031 |
- package types // import "github.com/docker/docker/libcontainerd/types"
- import (
- "time"
- "github.com/containerd/cgroups"
- "github.com/opencontainers/runtime-spec/specs-go"
- )
- // Summary is not used on linux
- type Summary struct{}
- // Stats holds metrics properties as returned by containerd
- type Stats struct {
- Read time.Time
- Metrics *cgroups.Metrics
- }
- // InterfaceToStats returns a stats object from the platform-specific interface.
- func InterfaceToStats(read time.Time, v interface{}) *Stats {
- return &Stats{
- Metrics: v.(*cgroups.Metrics),
- Read: read,
- }
- }
- // Resources defines updatable container resource values. TODO: it must match containerd upcoming API
- type Resources specs.LinuxResources
- // Checkpoints contains the details of a checkpoint
- type Checkpoints struct{}
|