Documentation ¶
Index ¶
- Constants
- func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)
- func PciFromString(businfo string) (uint32, error)
- func PciToString(address uint32) string
- func Register()
- func VFSMetadataDecoder(raw json.RawMessage) (getter.Getter, error)
- type Probe
- type ProbeHandler
- type VF
- func (obj *VF) GetField(key string) (interface{}, error)
- func (obj *VF) GetFieldBool(key string) (bool, error)
- func (obj *VF) GetFieldInt64(key string) (int64, error)
- func (obj *VF) GetFieldKeys() []string
- func (obj *VF) GetFieldString(key string) (string, error)
- func (v VF) MarshalEasyJSON(w *jwriter.Writer)
- func (v VF) MarshalJSON() ([]byte, error)
- func (obj *VF) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *VF) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *VF) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *VF) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *VF) UnmarshalJSON(data []byte) error
- type VFS
- func (obj *VFS) GetField(key string) (interface{}, error)
- func (obj *VFS) GetFieldBool(key string) (bool, error)
- func (obj *VFS) GetFieldInt64(key string) (int64, error)
- func (obj *VFS) GetFieldKeys() []string
- func (obj *VFS) GetFieldString(key string) (string, error)
- func (v VFS) MarshalEasyJSON(w *jwriter.Writer)
- func (v VFS) MarshalJSON() ([]byte, error)
- func (obj *VFS) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *VFS) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *VFS) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *VFS) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *VFS) UnmarshalJSON(data []byte) error
Constants ¶
const ( // RtmNewNeigh Neighbor netlink message RtmNewNeigh = 28 // RtmDelNeigh Neighbor netlink message RtmDelNeigh = 29 )
Variables ¶
This section is empty.
Functions ¶
func PciFromString ¶ added in v0.23.0
PciFromString transforms the symbolic representation of a pci address in an unsigned integer.
func PciToString ¶ added in v0.23.0
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) (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
Register a new network netlink/namespace probe in the graph
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) GetFieldKeys ¶ added in v0.26.0
func (*VF) GetFieldString ¶ added in v0.26.0
func (VF) MarshalEasyJSON ¶ added in v0.26.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (VF) MarshalJSON ¶ added in v0.26.0
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
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*VF) UnmarshalJSON ¶ added in v0.26.0
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) GetFieldInt64 ¶ added in v0.26.0
func (*VFS) GetFieldKeys ¶ added in v0.26.0
func (*VFS) GetFieldString ¶ added in v0.26.0
func (VFS) MarshalEasyJSON ¶ added in v0.26.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (VFS) MarshalJSON ¶ added in v0.26.0
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
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*VFS) UnmarshalJSON ¶ added in v0.26.0
UnmarshalJSON supports json.Unmarshaler interface