ulimit

package
v1.4.2-0...-e6b7d93 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// magic numbers for making the syscall
	// some of these are defined in the syscall package, but not all.
	// Also since Windows client doesn't get access to the syscall package, need to
	//	define these here
	RLIMIT_AS         = 9
	RLIMIT_CORE       = 4
	RLIMIT_CPU        = 0
	RLIMIT_DATA       = 2
	RLIMIT_FSIZE      = 1
	RLIMIT_LOCKS      = 10
	RLIMIT_MEMLOCK    = 8
	RLIMIT_MSGQUEUE   = 12
	RLIMIT_NICE       = 13
	RLIMIT_NOFILE     = 7
	RLIMIT_NPROC      = 6
	RLIMIT_RSS        = 5
	RLIMIT_RTPRIO     = 14
	RLIMIT_RTTIME     = 15
	RLIMIT_SIGPENDING = 11
	RLIMIT_STACK      = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Rlimit

type Rlimit struct {
	Type int    `json:"type,omitempty"`
	Hard uint64 `json:"hard,omitempty"`
	Soft uint64 `json:"soft,omitempty"`
}

type Ulimit

type Ulimit struct {
	Name string
	Hard int64
	Soft int64
}

Human friendly version of Rlimit

func Parse

func Parse(val string) (*Ulimit, error)

func (*Ulimit) GetRlimit

func (u *Ulimit) GetRlimit() (*Rlimit, error)

func (*Ulimit) String

func (u *Ulimit) String() string

Jump to

Keyboard shortcuts

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