oom

package
v1.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epoller

type Epoller struct {
	// contains filtered or unexported fields
}

Epoller implementation for handling OOM events from a container's cgroup

func New

func New(publisher shim.Publisher) (*Epoller, error)

New returns an epoll implementation that listens to OOM events from a container's cgroups.

func (*Epoller) Add

func (e *Epoller) Add(id string, cg cgroups.Cgroup) error

Add the cgroup to the epoll monitor

func (*Epoller) Close

func (e *Epoller) Close() error

Close the epoll fd

func (*Epoller) Run

func (e *Epoller) Run(ctx context.Context)

Run the epoll loop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL