sysinfo

package
v0.333.2-candidate Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 4 Imported by: 20

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 interface {
	TotalMemory() (uint64, error)
	TotalDisk() (uint64, error)
}

func NewProvider

func NewProvider(depotPath string) Provider

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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