Versions in this module Expand all Collapse all v0 v0.8.1 Sep 16, 2021 Changes in this version + type Cache struct + Level uint8 + LogicalProcessors []uint32 + SizeBytes uint64 + Type CacheType + func CachesForNode(ctx *context.Context, nodeID int) ([]*Cache, error) + func (c *Cache) String() string + type CacheType int + const CACHE_TYPE_DATA + const CACHE_TYPE_INSTRUCTION + const CACHE_TYPE_UNIFIED + func (a CacheType) MarshalJSON() ([]byte, error) + func (a CacheType) String() string + type Info struct + Modules []*Module + SupportedPageSizes []uint64 + TotalPhysicalBytes int64 + TotalUsableBytes int64 + func New(opts ...*option.Option) (*Info, error) + func (i *Info) JSONString(indent bool) string + func (i *Info) String() string + func (i *Info) YAMLString() string + type Module struct + Label string + Location string + SerialNumber string + SizeBytes int64 + Vendor string + type SortByCacheLevelTypeFirstProcessor []*Cache + func (a SortByCacheLevelTypeFirstProcessor) Len() int + func (a SortByCacheLevelTypeFirstProcessor) Less(i, j int) bool + func (a SortByCacheLevelTypeFirstProcessor) Swap(i, j int) + type SortByLogicalProcessorId []uint32 + func (a SortByLogicalProcessorId) Len() int + func (a SortByLogicalProcessorId) Less(i, j int) bool + func (a SortByLogicalProcessorId) Swap(i, j int)