Rename OOM to NotifyOOM
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
7fff13632e
commit
31327166e5
|
@ -113,9 +113,9 @@ type Container interface {
|
|||
// Systemerror - System error.
|
||||
Signal(signal os.Signal) error
|
||||
|
||||
// OOM returns a read-only channel signaling when the container receives an OOM notification.
|
||||
// NotifyOOM returns a read-only channel signaling when the container receives an OOM notification.
|
||||
//
|
||||
// errors:
|
||||
// Systemerror - System error.
|
||||
OOM() (<-chan struct{}, error)
|
||||
NotifyOOM() (<-chan struct{}, error)
|
||||
}
|
||||
|
|
|
@ -275,6 +275,6 @@ func (c *linuxContainer) Signal(signal os.Signal) error {
|
|||
}
|
||||
|
||||
// TODO: rename to be more descriptive
|
||||
func (c *linuxContainer) OOM() (<-chan struct{}, error) {
|
||||
func (c *linuxContainer) NotifyOOM() (<-chan struct{}, error) {
|
||||
return NotifyOnOOM(c.cgroupManager.GetPaths())
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ var oomCommand = cli.Command{
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
n, err := container.OOM()
|
||||
n, err := container.NotifyOOM()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue