package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

FromContext returns the limits that apply to ctx.
FromContextOrDie returns FromContext(ctx) if the latter is not nil.
FromLinux maps linux rlimit values to sentry Limits, being careful to handle infinities.
NewLimitSet creates a new, empty LimitSet.
NewLinuxDistroLimitSet returns a new LimitSet whose values are typical for a booted Linux distro.
NewLinuxLimitSet returns a LimitSet whose values match the default rlimits in Linux.
ToLinux maps sentry Limits to linux rlimit values, being careful to handle infinities.

# Constants

Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
CtxLimits is a Context.Value key for a LimitSet.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Infinity is a constant representing a resource with no limit.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.
Set of constants defining the different types of resource limits.

# Variables

AllLimitTypes contains all types in the order how they are presented in /proc/pid/limits.
FromLinuxResource maps linux resources to LimitTypes.
FromLinuxResourceName maps from linux resource names to LimitTypes.

# Structs

Limit specifies a system limit.
LimitSet represents the Limits that correspond to each LimitType.

# Type aliases

LimitType defines a type of resource limit.