github.com/jaypipes/ghw@v0.21.1/pkg/baseboard/baseboard_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 baseboard
     7  
     8  import (
     9  	"github.com/jaypipes/ghw/pkg/linuxdmi"
    10  )
    11  
    12  func (i *Info) load() error {
    13  	i.AssetTag = linuxdmi.Item(i.ctx, "board_asset_tag")
    14  	i.SerialNumber = linuxdmi.Item(i.ctx, "board_serial")
    15  	i.Vendor = linuxdmi.Item(i.ctx, "board_vendor")
    16  	i.Version = linuxdmi.Item(i.ctx, "board_version")
    17  	i.Product = linuxdmi.Item(i.ctx, "board_name")
    18  
    19  	return nil
    20  }