netlink

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PciFromString added in v0.23.0

func PciFromString(businfo string) (uint32, error)

PciFromString transforms the symbolic representation of a pci address in an unsigned integer.

func PciToString added in v0.23.0

func PciToString(address uint32) string

PciToString transforms un unsigned integer representing a pci address in the symbolic representation as used by the Linux kernel.

func VFSMetadataDecoder added in v0.24.0

func VFSMetadataDecoder(raw json.RawMessage) (common.Getter, error)

VFSMetadataDecoder implements a json message raw decoder

Types

type NetNsProbe added in v0.21.0

type NetNsProbe struct {
	common.RWMutex
	Graph  *graph.Graph
	Root   *graph.Node
	NsPath string
	// contains filtered or unexported fields
}

NetNsProbe describes a topology probe based on netlink in a network namespace

type Probe added in v0.21.0

type Probe struct {
	common.RWMutex
	Graph *graph.Graph
	// contains filtered or unexported fields
}

Probe describes a list NetLink NameSpace probe to enhance the graph

func NewProbe added in v0.21.0

func NewProbe(g *graph.Graph, hostNode *graph.Node) (*Probe, error)

NewProbe creates a new netlink probe

func (*Probe) Register added in v0.21.0

func (u *Probe) Register(nsPath string, root *graph.Node) (*NetNsProbe, error)

Register a new network netlink/namespace probe in the graph

func (*Probe) Start added in v0.21.0

func (u *Probe) Start()

Start the probe

func (*Probe) Stop added in v0.21.0

func (u *Probe) Stop()

Stop the probe

func (*Probe) Unregister added in v0.21.0

func (u *Probe) Unregister(nsPath string) error

Unregister a probe from a network namespace

type VF added in v0.24.0

type VF struct {
	ID        int64  `json:",omitempty"`
	LinkState int64  `json:",omitempty"`
	MAC       string `json:",omitempty"`
	Qos       int64  `json:",omitempty"`
	Spoofchk  bool   `json:",omitempty"`
	TxRate    int64  `json:",omitempty"`
	Vlan      int64  `json:",omitempty"`
}

VF describes the metadata of a virtual function easyjson:json gendecoder

type VFS added in v0.24.0

type VFS []*VF

VFS describes a list of virtual functions easyjson:json gendecoder

Source Files

  • metadata.go
  • netlink.go
  • sriov.go

Jump to

Keyboard shortcuts

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