package cgroup
import "github.com/containerd/nydus-snapshotter/pkg/cgroup"
Index ¶
- Variables
- type Config
- type DaemonCgroup
- type Manager
- func NewManager(opt Opt) (*Manager, error)
- func (m *Manager) AddProc(pid int) error
- func (m *Manager) Delete() error
- type Opt
Variables ¶
Types ¶
type Config ¶
type Config struct { MemoryLimitInBytes int64 }
type DaemonCgroup ¶
type DaemonCgroup interface { // Delete the current cgroup. Delete() error // Add a process to current cgroup. AddProc(pid int) error }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddProc ¶
Please make sure the *Manager is not null.
func (*Manager) Delete ¶
Please make sure the *Manager is not null.
type Opt ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/cgroup/v1 | |
pkg/cgroup/v2 |
- Version
- v0.15.2 (latest)
- Published
- May 26, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 day ago –
Tools for package owners.