netlink

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 30 Imported by: 6

Documentation

Index

Constants

View Source
const (

	// RtmNewNeigh Neighbor netlink message
	RtmNewNeigh = 28
	// RtmDelNeigh Neighbor netlink message
	RtmDelNeigh = 29
)

Variables

This section is empty.

Functions

func NewProbe added in v0.21.0

func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

NewProbe returns a new topology netlink probe

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 Register added in v0.26.0

func Register()

Register registers graph metadata decoders

func VFSMetadataDecoder added in v0.24.0

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

VFSMetadataDecoder implements a json message raw decoder

Types

type Probe added in v0.21.0

type Probe struct {
	insanelock.RWMutex
	Ctx    tp.Context
	NsPath string
	// contains filtered or unexported fields
}

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

type ProbeHandler added in v0.25.0

type ProbeHandler struct {
	insanelock.RWMutex
	Ctx tp.Context
	// contains filtered or unexported fields
}

ProbeHandler describes a list NetLink NameSpace probe to enhance the graph

func (*ProbeHandler) Register added in v0.25.0

func (u *ProbeHandler) Register(nsPath string, ctx tp.Context) (*Probe, error)

Register a new network netlink/namespace probe in the graph

func (*ProbeHandler) Start added in v0.25.0

func (u *ProbeHandler) Start() error

Start the probe

func (*ProbeHandler) Stop added in v0.25.0

func (u *ProbeHandler) Stop()

Stop the probe

func (*ProbeHandler) Unregister added in v0.25.0

func (u *ProbeHandler) 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

func (*VF) GetField added in v0.26.0

func (obj *VF) GetField(key string) (interface{}, error)

func (*VF) GetFieldBool added in v0.26.0

func (obj *VF) GetFieldBool(key string) (bool, error)

func (*VF) GetFieldInt64 added in v0.26.0

func (obj *VF) GetFieldInt64(key string) (int64, error)

func (*VF) GetFieldKeys added in v0.26.0

func (obj *VF) GetFieldKeys() []string

func (*VF) GetFieldString added in v0.26.0

func (obj *VF) GetFieldString(key string) (string, error)

func (VF) MarshalEasyJSON added in v0.26.0

func (v VF) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VF) MarshalJSON added in v0.26.0

func (v VF) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VF) MatchBool added in v0.26.0

func (obj *VF) MatchBool(key string, predicate getter.BoolPredicate) bool

func (*VF) MatchInt64 added in v0.26.0

func (obj *VF) MatchInt64(key string, predicate getter.Int64Predicate) bool

func (*VF) MatchString added in v0.26.0

func (obj *VF) MatchString(key string, predicate getter.StringPredicate) bool

func (*VF) UnmarshalEasyJSON added in v0.26.0

func (v *VF) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VF) UnmarshalJSON added in v0.26.0

func (v *VF) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type VFS added in v0.24.0

type VFS []*VF

VFS describes a list of virtual functions easyjson:json gendecoder

func (*VFS) GetField added in v0.26.0

func (obj *VFS) GetField(key string) (interface{}, error)

func (*VFS) GetFieldBool added in v0.26.0

func (obj *VFS) GetFieldBool(key string) (bool, error)

func (*VFS) GetFieldInt64 added in v0.26.0

func (obj *VFS) GetFieldInt64(key string) (int64, error)

func (*VFS) GetFieldKeys added in v0.26.0

func (obj *VFS) GetFieldKeys() []string

func (*VFS) GetFieldString added in v0.26.0

func (obj *VFS) GetFieldString(key string) (string, error)

func (VFS) MarshalEasyJSON added in v0.26.0

func (v VFS) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VFS) MarshalJSON added in v0.26.0

func (v VFS) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VFS) MatchBool added in v0.26.0

func (obj *VFS) MatchBool(key string, predicate getter.BoolPredicate) bool

func (*VFS) MatchInt64 added in v0.26.0

func (obj *VFS) MatchInt64(key string, predicate getter.Int64Predicate) bool

func (*VFS) MatchString added in v0.26.0

func (obj *VFS) MatchString(key string, predicate getter.StringPredicate) bool

func (*VFS) UnmarshalEasyJSON added in v0.26.0

func (v *VFS) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VFS) UnmarshalJSON added in v0.26.0

func (v *VFS) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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