cadvisor: github.com/google/cadvisor/utils/cpuload/netlink Index | Files | Directories

package netlink

import "github.com/google/cadvisor/utils/cpuload/netlink"

Index

Package Files

conn.go netlink.go reader.go

Variables

var (
    Endian = binary.LittleEndian
)

type Connection Uses

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

func (*Connection) Close Uses

func (c *Connection) Close() error

func (*Connection) Read Uses

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

func (*Connection) ReadMessage Uses

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

func (*Connection) Write Uses

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

func (*Connection) WriteMessage Uses

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

type NetlinkReader Uses

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

func New Uses

func New() (*NetlinkReader, error)

func (*NetlinkReader) GetCpuLoad Uses

func (r *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 Uses

func (r *NetlinkReader) Start() error

func (*NetlinkReader) Stop Uses

func (r *NetlinkReader) Stop()

Directories

PathSynopsis
example

Package netlink imports 9 packages (graph) and is imported by 258 packages. Updated 2020-04-30. Refresh now. Tools for package owners.