hardware

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder

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

MetadataDecoder implements a json message raw decoder

func NewProbe

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

NewProbe returns a BESS topology probe

func Register

func Register()

Register registers graph metadata decoders

Types

type CPUInfo

type CPUInfo struct {
	CPU        int64  `json:"CPU,omitempty"`
	VendorID   string `json:"VendorID,omitempty"`
	Family     string `json:"Family,omitempty"`
	Model      string `json:"Model,omitempty"`
	Stepping   int64  `json:"Stepping,omitempty"`
	PhysicalID string `json:"PhysicalID,omitempty"`
	CoreID     string `json:"CoreID,omitempty"`
	Cores      int64  `json:"Cores,omitempty"`
	ModelName  string `json:"ModelName,omitempty"`
	Mhz        int64  `json:"Mhz,omitempty"`
	CacheSize  int64  `json:"CacheSize,omitempty"`
	Microcode  string `json:"Microcode,omitempty"`
}

CPUInfo defines host information easyjson:json gendecoder

func (*CPUInfo) GetField

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

func (*CPUInfo) GetFieldBool

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

func (*CPUInfo) GetFieldInt64

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

func (*CPUInfo) GetFieldKeys

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

func (*CPUInfo) GetFieldString

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

func (CPUInfo) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CPUInfo) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CPUInfo) MatchBool

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

func (*CPUInfo) MatchInt64

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

func (*CPUInfo) MatchString

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

func (*CPUInfo) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CPUInfo) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CPUInfos

type CPUInfos []*CPUInfo

easyjson:json gendecoder

func (*CPUInfos) GetField

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

func (*CPUInfos) GetFieldBool

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

func (*CPUInfos) GetFieldInt64

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

func (*CPUInfos) GetFieldKeys

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

func (*CPUInfos) GetFieldString

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

func (CPUInfos) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CPUInfos) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CPUInfos) MatchBool

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

func (*CPUInfos) MatchInt64

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

func (*CPUInfos) MatchString

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

func (*CPUInfos) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CPUInfos) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Probe

type Probe struct {
	Ctx probes.Context
}

func (*Probe) Start

func (p *Probe) Start() error

Start the probe

func (*Probe) Stop

func (u *Probe) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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