package oom

import "github.com/containerd/containerd/pkg/oom"

Index

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

Source Files

epoll.go

Version
v1.3.7
Published
Aug 4, 2020
Platform
linux/amd64
Imports
8 packages
Last checked
2 minutes ago

Tools for package owners.