github.com/runcom/containerd@v0.0.0-20160708090337-9bff9f934c0d/supervisor/monitor_solaris.go (about) 1 package supervisor 2 3 import ( 4 "errors" 5 6 "github.com/docker/containerd/runtime" 7 ) 8 9 func NewMonitor() (*Monitor, error) { 10 return &Monitor{}, errors.New("Monitor NewMonitor() not implemented on Solaris") 11 } 12 13 type Monitor struct { 14 ooms chan string 15 } 16 17 func (m *Monitor) Exits() chan runtime.Process { 18 return nil 19 } 20 21 func (m *Monitor) OOMs() chan string { 22 return m.ooms 23 } 24 25 func (m *Monitor) Monitor(p runtime.Process) error { 26 return errors.New("Monitor Monitor() not implemented on Solaris") 27 } 28 29 func (m *Monitor) MonitorOOM(c runtime.Container) error { 30 return errors.New("Monitor MonitorOOM() not implemented on Solaris") 31 } 32 33 func (m *Monitor) Close() error { 34 return errors.New("Monitor Close() not implemented on Solaris") 35 } 36 37 func (m *Monitor) start() { 38 }