From 31327166e5396d8078e33e7eeec2fc2e920fb84a Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 11 Feb 2015 15:09:54 -0800 Subject: [PATCH] Rename OOM to NotifyOOM Signed-off-by: Michael Crosby --- container.go | 4 ++-- linux_container.go | 2 +- nsinit/oom.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/container.go b/container.go index a2246378..6d681ac1 100644 --- a/container.go +++ b/container.go @@ -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) } diff --git a/linux_container.go b/linux_container.go index 07f08aee..50df5ba7 100644 --- a/linux_container.go +++ b/linux_container.go @@ -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()) } diff --git a/nsinit/oom.go b/nsinit/oom.go index eabe0b2b..c1b4c805 100644 --- a/nsinit/oom.go +++ b/nsinit/oom.go @@ -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) }