cgroup

package
v0.0.0-...-d723c4e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGroup

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

func (*CGroup) FD

func (d *CGroup) FD() int

FD returns the file descriptor of the cgroup directory

type FSManager

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

func NewFSManager

func NewFSManager(shutdownCtx context.Context, options ...FSManagerOption) (*FSManager, error)

func (*FSManager) AddGroup

func (m *FSManager) AddGroup(name string) (int, error)

func (*FSManager) RemoveGroup

func (m *FSManager) RemoveGroup(name string) error

type FSManagerOption

type FSManagerOption func(*fSManagerConfig)

func WithRootPath

func WithRootPath(rootPath string) FSManagerOption

func WithServerCGroupName

func WithServerCGroupName(serverCGroupName string) FSManagerOption

func WithTargetMaxMemoryBytes

func WithTargetMaxMemoryBytes(targetMaxMemoryBytes int) FSManagerOption

Jump to

Keyboard shortcuts

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