Documentation
¶
Overview ¶
Package systeminfo is a generated protocol buffer package.
It is generated from these files:
system.proto
It has these top-level messages:
System CPU
Index ¶
- Variables
- type CPU
- func (*CPU) Descriptor() ([]byte, []int)
- func (m *CPU) GetBogoMIPS() float32
- func (m *CPU) GetBugs() []string
- func (m *CPU) GetCPUCores() int32
- func (m *CPU) GetCPUFamily() string
- func (m *CPU) GetCPUMHz() float32
- func (m *CPU) GetCacheSize() string
- func (m *CPU) GetCoreID() int32
- func (m *CPU) GetFlags() []string
- func (m *CPU) GetMicrocode() string
- func (m *CPU) GetModel() string
- func (m *CPU) GetModelName() string
- func (m *CPU) GetPhysicalID() int32
- func (m *CPU) GetSiblings() int32
- func (m *CPU) GetStepping() string
- func (m *CPU) GetVendorID() string
- func (m *CPU) Marshal() (dAtA []byte, err error)
- func (m *CPU) MarshalTo(dAtA []byte) (int, error)
- func (*CPU) ProtoMessage()
- func (m *CPU) Reset()
- func (m *CPU) Size() (n int)
- func (m *CPU) String() string
- func (m *CPU) Unmarshal(dAtA []byte) error
- type Error
- type System
- func (*System) Descriptor() ([]byte, []int)
- func (s *System) Get() error
- func (m *System) GetCPU() []*CPU
- func (m *System) GetHostname() string
- func (m *System) GetKernelArch() string
- func (m *System) GetKernelCompileDate() string
- func (m *System) GetKernelOS() string
- func (m *System) GetKernelType() string
- func (m *System) GetKernelVersion() string
- func (m *System) GetMemTotal() uint64
- func (m *System) GetNetDev() []string
- func (m *System) GetOSID() string
- func (m *System) GetOSIDLike() string
- func (m *System) GetOSName() string
- func (m *System) GetOSVersion() string
- func (m *System) GetSockets() int32
- func (m *System) GetSwapTotal() uint64
- func (s *System) JSONMarshal() (p []byte, err error)
- func (m *System) Marshal() (dAtA []byte, err error)
- func (m *System) MarshalTo(dAtA []byte) (int, error)
- func (s *System) ProtoMarshal() (p []byte, err error)
- func (*System) ProtoMessage()
- func (m *System) Reset()
- func (m *System) Size() (n int)
- func (m *System) String() string
- func (m *System) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSystem = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSystem = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct {
PhysicalID int32 `protobuf:"varint,1,opt,name=PhysicalID,proto3" json:"PhysicalID,omitempty"`
CoreID int32 `protobuf:"varint,2,opt,name=CoreID,proto3" json:"CoreID,omitempty"`
Siblings int32 `protobuf:"varint,3,opt,name=Siblings,proto3" json:"Siblings,omitempty"`
VendorID string `protobuf:"bytes,4,opt,name=VendorID,proto3" json:"VendorID,omitempty"`
CPUFamily string `protobuf:"bytes,5,opt,name=CPUFamily,proto3" json:"CPUFamily,omitempty"`
Model string `protobuf:"bytes,6,opt,name=Model,proto3" json:"Model,omitempty"`
ModelName string `protobuf:"bytes,7,opt,name=ModelName,proto3" json:"ModelName,omitempty"`
Stepping string `protobuf:"bytes,8,opt,name=Stepping,proto3" json:"Stepping,omitempty"`
Microcode string `protobuf:"bytes,9,opt,name=Microcode,proto3" json:"Microcode,omitempty"`
CPUMHz float32 `protobuf:"fixed32,10,opt,name=CPUMHz,proto3" json:"CPUMHz,omitempty"`
BogoMIPS float32 `protobuf:"fixed32,11,opt,name=BogoMIPS,proto3" json:"BogoMIPS,omitempty"`
CacheSize string `protobuf:"bytes,12,opt,name=CacheSize,proto3" json:"CacheSize,omitempty"`
CPUCores int32 `protobuf:"varint,13,opt,name=CPUCores,proto3" json:"CPUCores,omitempty"`
Flags []string `protobuf:"bytes,14,rep,name=Flags" json:"Flags,omitempty"`
Bugs []string `protobuf:"bytes,15,rep,name=Bugs" json:"Bugs,omitempty"`
}
func (*CPU) Descriptor ¶
func (*CPU) GetBogoMIPS ¶
func (*CPU) GetCPUCores ¶
func (*CPU) GetCPUFamily ¶
func (*CPU) GetCacheSize ¶
func (*CPU) GetMicrocode ¶
func (*CPU) GetModelName ¶
func (*CPU) GetPhysicalID ¶
func (*CPU) GetSiblings ¶
func (*CPU) GetStepping ¶
func (*CPU) GetVendorID ¶
func (*CPU) ProtoMessage ¶
func (*CPU) ProtoMessage()
type System ¶
type System struct {
Hostname string `protobuf:"bytes,1,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
KernelOS string `protobuf:"bytes,2,opt,name=KernelOS,proto3" json:"KernelOS,omitempty"`
KernelVersion string `protobuf:"bytes,3,opt,name=KernelVersion,proto3" json:"KernelVersion,omitempty"`
KernelArch string `protobuf:"bytes,4,opt,name=KernelArch,proto3" json:"KernelArch,omitempty"`
KernelType string `protobuf:"bytes,5,opt,name=KernelType,proto3" json:"KernelType,omitempty"`
KernelCompileDate string `protobuf:"bytes,6,opt,name=KernelCompileDate,proto3" json:"KernelCompileDate,omitempty"`
OSName string `protobuf:"bytes,7,opt,name=OSName,proto3" json:"OSName,omitempty"`
OSID string `protobuf:"bytes,8,opt,name=OSID,proto3" json:"OSID,omitempty"`
OSIDLike string `protobuf:"bytes,9,opt,name=OSIDLike,proto3" json:"OSIDLike,omitempty"`
OSVersion string `protobuf:"bytes,10,opt,name=OSVersion,proto3" json:"OSVersion,omitempty"`
MemTotal uint64 `protobuf:"varint,11,opt,name=MemTotal,proto3" json:"MemTotal,omitempty"`
SwapTotal uint64 `protobuf:"varint,12,opt,name=SwapTotal,proto3" json:"SwapTotal,omitempty"`
NetDev []string `protobuf:"bytes,13,rep,name=NetDev" json:"NetDev,omitempty"`
Sockets int32 `protobuf:"varint,14,opt,name=Sockets,proto3" json:"Sockets,omitempty"`
CPU []*CPU `protobuf:"bytes,15,rep,name=CPU" json:"CPU,omitempty"`
}
func JSONUnmarshal ¶
JSONUnmarshal unmarshals the received bytes into System.
func ProtoUnmarshal ¶
ProtoUnmarshal unmarshals the received bytes into System.
func (*System) Descriptor ¶
func (*System) GetHostname ¶
func (*System) GetKernelArch ¶
func (*System) GetKernelCompileDate ¶
func (*System) GetKernelOS ¶
func (*System) GetKernelType ¶
func (*System) GetKernelVersion ¶
func (*System) GetMemTotal ¶
func (*System) GetOSIDLike ¶
func (*System) GetOSVersion ¶
func (*System) GetSockets ¶
func (*System) GetSwapTotal ¶
func (*System) JSONMarshal ¶
JSONMarshal marshals the System info as JSON and returns the result.
func (*System) ProtoMarshal ¶
ProtoMarshal marshals the System info as Protobuf and returns the result.
func (*System) ProtoMessage ¶
func (*System) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.
