Rename OOM to NotifyOOM

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-02-11 15:09:54 -08:00
parent 7fff13632e
commit 31327166e5
3 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -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())
}

View File

@ -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)
}