monitor_solaris.go 756 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package supervisor
  2. import (
  3. "errors"
  4. "github.com/docker/containerd/runtime"
  5. )
  6. func NewMonitor() (*Monitor, error) {
  7. return &Monitor{}, errors.New("Monitor NewMonitor() not implemented on Solaris")
  8. }
  9. type Monitor struct {
  10. ooms chan string
  11. }
  12. func (m *Monitor) Exits() chan runtime.Process {
  13. return nil
  14. }
  15. func (m *Monitor) OOMs() chan string {
  16. return m.ooms
  17. }
  18. func (m *Monitor) Monitor(p runtime.Process) error {
  19. return errors.New("Monitor Monitor() not implemented on Solaris")
  20. }
  21. func (m *Monitor) MonitorOOM(c runtime.Container) error {
  22. return errors.New("Monitor MonitorOOM() not implemented on Solaris")
  23. }
  24. func (m *Monitor) Close() error {
  25. return errors.New("Monitor Close() not implemented on Solaris")
  26. }
  27. func (m *Monitor) start() {
  28. }