github.com/jwhonce/docker@v0.6.7-0.20190327063223-da823cf3a5a3/libcontainerd/types/types_linux.go (about)

     1  package types // import "github.com/docker/docker/libcontainerd/types"
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/containerd/cgroups"
     7  	"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  // 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.(*cgroups.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{}