netlink

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO(rjnagal): Verify and fix for other architectures.
	Endian = binary.LittleEndian
)

Functions

This section is empty.

Types

type Connection

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

func (*Connection) Close

func (self *Connection) Close() error

func (*Connection) Read

func (self *Connection) Read(b []byte) (n int, err error)

func (*Connection) ReadMessage

func (self *Connection) ReadMessage() (msg syscall.NetlinkMessage, err error)

func (*Connection) Write

func (self *Connection) Write(b []byte) (n int, err error)

func (*Connection) WriteMessage

func (self *Connection) WriteMessage(msg syscall.NetlinkMessage) error

type NetlinkReader

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

func New

func New() (*NetlinkReader, error)

func (*NetlinkReader) GetCpuLoad

func (self *NetlinkReader) GetCpuLoad(name string, path string) (info.LoadStats, error)

Returns instantaneous number of running tasks in a group. Caller can use historical data to calculate cpu load. path is an absolute filesystem path for a container under the CPU cgroup hierarchy. NOTE: non-hierarchical load is returned. It does not include load for subcontainers.

func (*NetlinkReader) Start

func (self *NetlinkReader) Start() error

func (*NetlinkReader) Stop

func (self *NetlinkReader) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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