Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Endian = binary.LittleEndian
)
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) ReadMessage ¶
func (c *Connection) ReadMessage() (msg syscall.NetlinkMessage, err error)
func (*Connection) WriteMessage ¶
func (c *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 ¶
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 (r *NetlinkReader) Start() error
func (*NetlinkReader) Stop ¶
func (r *NetlinkReader) Stop()
Click to show internal directories.
Click to hide internal directories.