mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
835971c6fd
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
29 lines
980 B
Go
29 lines
980 B
Go
package stats
|
|
|
|
import (
|
|
"github.com/docker/docker/container"
|
|
)
|
|
|
|
// platformNewStatsCollector performs platform specific initialisation of the
|
|
// Collector structure. This is a no-op on Windows.
|
|
func platformNewStatsCollector(s *Collector) {
|
|
}
|
|
|
|
// Collect registers the container with the collector and adds it to
|
|
// the event loop for collection on the specified interval returning
|
|
// a channel for the subscriber to receive on.
|
|
// Currently not supported on Solaris
|
|
func (s *Collector) Collect(c *container.Container) chan interface{} {
|
|
return nil
|
|
}
|
|
|
|
// StopCollection closes the channels for all subscribers and removes
|
|
// the container from metrics collection.
|
|
// Currently not supported on Solaris
|
|
func (s *Collector) StopCollection(c *container.Container) {
|
|
}
|
|
|
|
// Unsubscribe removes a specific subscriber from receiving updates for a container's stats.
|
|
// Currently not supported on Solaris
|
|
func (s *Collector) Unsubscribe(c *container.Container, ch chan interface{}) {
|
|
}
|