mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
b25bcaa8b3
The per-file deprecation in cgroup_deprecated.go is not working, let's replace it. Link to Hooks.Run in Hook.Run deprecation notice. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
30 lines
777 B
Go
30 lines
777 B
Go
package configs
|
|
|
|
import "github.com/opencontainers/cgroups"
|
|
|
|
// Deprecated: use [github.com/opencontainers/cgroups].
|
|
type (
|
|
Cgroup = cgroups.Cgroup
|
|
Resources = cgroups.Resources
|
|
FreezerState = cgroups.FreezerState
|
|
LinuxRdma = cgroups.LinuxRdma
|
|
BlockIODevice = cgroups.BlockIODevice
|
|
WeightDevice = cgroups.WeightDevice
|
|
ThrottleDevice = cgroups.ThrottleDevice
|
|
HugepageLimit = cgroups.HugepageLimit
|
|
IfPrioMap = cgroups.IfPrioMap
|
|
)
|
|
|
|
// Deprecated: use [github.com/opencontainers/cgroups].
|
|
const (
|
|
Undefined = cgroups.Undefined
|
|
Frozen = cgroups.Frozen
|
|
Thawed = cgroups.Thawed
|
|
)
|
|
|
|
// Deprecated: use [github.com/opencontainers/cgroups].
|
|
var (
|
|
NewWeightDevice = cgroups.NewWeightDevice
|
|
NewThrottleDevice = cgroups.NewThrottleDevice
|
|
)
|