collector_solaris.go 980 B

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