github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/daemon/stats/collector_solaris.go (about) 1 package stats 2 3 import ( 4 "github.com/docker/docker/container" 5 ) 6 7 // platformNewStatsCollector performs platform specific initialisation of the 8 // Collector structure. This is a no-op on Windows. 9 func platformNewStatsCollector(s *Collector) { 10 } 11 12 // Collect registers the container with the collector and adds it to 13 // the event loop for collection on the specified interval returning 14 // a channel for the subscriber to receive on. 15 // Currently not supported on Solaris 16 func (s *Collector) Collect(c *container.Container) chan interface{} { 17 return nil 18 } 19 20 // StopCollection closes the channels for all subscribers and removes 21 // the container from metrics collection. 22 // Currently not supported on Solaris 23 func (s *Collector) StopCollection(c *container.Container) { 24 } 25 26 // Unsubscribe removes a specific subscriber from receiving updates for a container's stats. 27 // Currently not supported on Solaris 28 func (s *Collector) Unsubscribe(c *container.Container, ch chan interface{}) { 29 }