cgroup

package
v0.0.0-...-e336ece Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 8 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 {
	CPUSet      string
	CPURate     string
	Memory      string
	TCPMemory   string
	DevicesDeny string
	DeviceAllow string
	BlkReadBps  string
	BlkWriteBps string
}

Cgroup defines the configuration to limit resources by cgroups.

func (Cgroup) Limit

func (c Cgroup) Limit() error

Limit limits the resources by cgroups.

Jump to

Keyboard shortcuts

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