cgfsmon

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrContextMissing         = errors.New("context is missing.")
	ErrCGroupRootNotFound     = errors.New("cgroup v2 file system mount point is missing.")
	ErrLoggerMissing          = errors.New("logger is missing.")
	ErrUnderlingWatcherExited = errors.New("underling file system watcher has exited.")
)

Functions

This section is empty.

Types

type CGroupFSMonitor

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

func New

func New(opts ...Opt) (ret *CGroupFSMonitor, err error)

func (*CGroupFSMonitor) Events

func (w *CGroupFSMonitor) Events() <-chan types.CGroupEvents

func (*CGroupFSMonitor) RunCGroupMonitor

func (w *CGroupFSMonitor) RunCGroupMonitor(ctx context.Context) (err error)

type Opt

type Opt func(w *CGroupFSMonitor) (ret *CGroupFSMonitor, err error)

func WithCgroupRoot

func WithCgroupRoot(root config.CGroupRoot) Opt

func WithLogger

func WithLogger(log *zap.SugaredLogger) Opt

Jump to

Keyboard shortcuts

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