sysinfo

package
v0.0.0-...-53a29fe Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func MustGetMaxValidGID

func MustGetMaxValidGID() int

func MustGetMaxValidUID

func MustGetMaxValidUID() int

Types

type IDMap

type IDMap string
const DefaultGIDMap IDMap = "/proc/self/gid_map"
const DefaultUIDMap IDMap = "/proc/self/uid_map"

func (IDMap) MaxValid

func (u IDMap) MaxValid() (int, error)

type ParseError

type ParseError struct {
	Line string
	Err  error
}

func (ParseError) Error

func (p ParseError) Error() string

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(depotPath string) Provider

func (Provider) TotalDisk

func (provider Provider) TotalDisk() (uint64, error)

func (Provider) TotalMemory

func (provider Provider) TotalMemory() (uint64, error)

Jump to

Keyboard shortcuts

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