github.com/jaypipes/ghw@v0.21.1/pkg/product/product_linux.go (about)

     1  // Use and distribution licensed under the Apache license version 2.
     2  //
     3  // See the COPYING file in the root project directory for full text.
     4  //
     5  
     6  package product
     7  
     8  import (
     9  	"github.com/jaypipes/ghw/pkg/linuxdmi"
    10  )
    11  
    12  func (i *Info) load() error {
    13  
    14  	i.Family = linuxdmi.Item(i.ctx, "product_family")
    15  	i.Name = linuxdmi.Item(i.ctx, "product_name")
    16  	i.Vendor = linuxdmi.Item(i.ctx, "sys_vendor")
    17  	i.SerialNumber = linuxdmi.Item(i.ctx, "product_serial")
    18  	i.UUID = linuxdmi.Item(i.ctx, "product_uuid")
    19  	i.SKU = linuxdmi.Item(i.ctx, "product_sku")
    20  	i.Version = linuxdmi.Item(i.ctx, "product_version")
    21  
    22  	return nil
    23  }