Documentation ¶
Index ¶
- Constants
- Variables
- func CreateEvent(eventAttributes *syscall.SecurityAttributes, manualReset bool, ...) (handle syscall.Handle, err error)
- func LUtimesNano(path string, ts []syscall.Timespec) error
- func Lgetxattr(path string, attr string) ([]byte, error)
- func Lsetxattr(path string, attr string, data []byte, flags int) error
- func Mkdev(major int64, minor int64) uint32
- func MkdirAll(path string, perm os.FileMode) error
- func Mknod(path string, mode uint32, dev int) error
- func OpenEvent(desiredAccess uint32, inheritHandle bool, name string) (handle syscall.Handle, err error)
- func PulseEvent(handle syscall.Handle) (err error)
- func ResetEvent(handle syscall.Handle) (err error)
- func SetEvent(handle syscall.Handle) (err error)
- func Umask(newmask int) (oldmask int, err error)
- func UtimesNano(path string, ts []syscall.Timespec) error
- type MemInfo
- type Stat_t
Constants ¶
View Source
const ( EVENT_ALL_ACCESS = 0x1F0003 EVENT_MODIFY_STATUS = 0x0002 )
Variables ¶
View Source
var (
ErrNotSupportedPlatform = errors.New("platform and architecture is not supported")
)
Functions ¶
func CreateEvent ¶ added in v1.8.0
func PulseEvent ¶ added in v1.8.0
func ResetEvent ¶ added in v1.8.0
Types ¶
type MemInfo ¶ added in v1.4.0
type MemInfo struct { // Total usable RAM (i.e. physical RAM minus a few reserved bits and the // kernel binary code). MemTotal int64 // Amount of free memory. MemFree int64 // Total amount of swap space available. SwapTotal int64 // Amount of swap space that is currently unused. SwapFree int64 }
MemInfo contains memory statistics of the host system.
func ReadMemInfo ¶ added in v1.4.0
ReadMemInfo retrieves memory statistics of the host system and returns a
MemInfo type.
Click to show internal directories.
Click to hide internal directories.