github.com/getong/docker@v1.13.1/daemon/stats_collector_solaris.go (about) 1 package daemon 2 3 import ( 4 "github.com/docker/docker/container" 5 "time" 6 ) 7 8 // newStatsCollector returns a new statsCollector for collection stats 9 // for a registered container at the specified interval. The collector allows 10 // non-running containers to be added and will start processing stats when 11 // they are started. 12 func (daemon *Daemon) newStatsCollector(interval time.Duration) *statsCollector { 13 return &statsCollector{} 14 } 15 16 // statsCollector manages and provides container resource stats 17 type statsCollector struct { 18 } 19 20 // collect registers the container with the collector and adds it to 21 // the event loop for collection on the specified interval returning 22 // a channel for the subscriber to receive on. 23 func (s *statsCollector) collect(c *container.Container) chan interface{} { 24 return nil 25 } 26 27 // stopCollection closes the channels for all subscribers and removes 28 // the container from metrics collection. 29 func (s *statsCollector) stopCollection(c *container.Container) { 30 } 31 32 // unsubscribe removes a specific subscriber from receiving updates for a container's stats. 33 func (s *statsCollector) unsubscribe(c *container.Container, ch chan interface{}) { 34 }