mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Update vendor/
This commit is contained in:
22
vendor/github.com/docker/containerd/supervisor/oom.go
generated
vendored
Normal file
22
vendor/github.com/docker/containerd/supervisor/oom.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package supervisor
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
type OOMTask struct {
|
||||
baseTask
|
||||
ID string
|
||||
}
|
||||
|
||||
func (s *Supervisor) oom(t *OOMTask) error {
|
||||
logrus.WithField("id", t.ID).Debug("containerd: container oom")
|
||||
s.notifySubscribers(Event{
|
||||
Timestamp: time.Now(),
|
||||
ID: t.ID,
|
||||
Type: StateOOM,
|
||||
})
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user