Versions in this module Expand all Collapse all v1 v1.0.9 Sep 3, 2020 Changes in this version + const BytesMultiplier + const EbMultiplier + const GbMultiplier + const KbMultiplier + const MaxIpmiChannel + const MbMultiplier + const TbMultiplier + const ZbMultiplier + func CreateInveroryInfo() []byte + func GetBmcAddress(dependencies IDependencies) string + func GetBmcV6Address(dependencies IDependencies) string + func GetBoot(dependencies IDependencies) *models.Boot + func GetCPU(dependencies IDependencies) *models.CPU + func GetDisks(dependencies IDependencies) []*models.Disk + func GetHostname(dependencies IDependencies) string + func GetInterfaces(depenndecies IDependencies) []*models.Interface + func GetMemory(dependencies IDependencies) *models.Memory + func GetVendor(dependencies IDependencies) *models.SystemVendor + func ReadInventory() *models.Inventory + type Dependencies struct + func (d *Dependencies) Abs(path string) (string, error) + func (d *Dependencies) Block(opts ...*ghw.WithOption) (*ghw.BlockInfo, error) + func (d *Dependencies) EvalSymlinks(path string) (string, error) + func (d *Dependencies) Execute(command string, args ...string) (stdout string, stderr string, exitCode int) + func (d *Dependencies) Hostname() (string, error) + func (d *Dependencies) Interfaces() ([]Interface, error) + func (d *Dependencies) ReadDir(dirname string) ([]os.FileInfo, error) + func (d *Dependencies) ReadFile(fname string) ([]byte, error) + func (d *Dependencies) Stat(fname string) (os.FileInfo, error) + type IDependencies interface + Abs func(path string) (string, error) + Block func(opts ...*ghw.WithOption) (*ghw.BlockInfo, error) + EvalSymlinks func(path string) (string, error) + Execute func(command string, args ...string) (stdout string, stderr string, exitCode int) + Hostname func() (string, error) + Interfaces func() ([]Interface, error) + ReadDir func(dirname string) ([]os.FileInfo, error) + ReadFile func(fname string) ([]byte, error) + Stat func(fname string) (os.FileInfo, error) + type Interface interface + Addrs func() ([]net.Addr, error) + Flags func() net.Flags + HardwareAddr func() net.HardwareAddr + IsPhysical func() bool + MTU func() int + Name func() string + SpeedMbps func() int64 + type MockIDependencies struct + func (_m *MockIDependencies) Abs(path string) (string, error) + func (_m *MockIDependencies) Block(opts ...*ghw.WithOption) (*ghw.BlockInfo, error) + func (_m *MockIDependencies) EvalSymlinks(path string) (string, error) + func (_m *MockIDependencies) Execute(command string, args ...string) (string, string, int) + func (_m *MockIDependencies) Hostname() (string, error) + func (_m *MockIDependencies) Interfaces() ([]Interface, error) + func (_m *MockIDependencies) ReadDir(dirname string) ([]os.FileInfo, error) + func (_m *MockIDependencies) ReadFile(fname string) ([]byte, error) + func (_m *MockIDependencies) Stat(fname string) (os.FileInfo, error) + type MockInterface struct + func (_m *MockInterface) Addrs() ([]net.Addr, error) + func (_m *MockInterface) Flags() net.Flags + func (_m *MockInterface) HardwareAddr() net.HardwareAddr + func (_m *MockInterface) IsPhysical() bool + func (_m *MockInterface) MTU() int + func (_m *MockInterface) Name() string + func (_m *MockInterface) SpeedMbps() int64 + type NetworkInterface struct + func (n *NetworkInterface) Addrs() ([]net.Addr, error) + func (n *NetworkInterface) Flags() net.Flags + func (n *NetworkInterface) HardwareAddr() net.HardwareAddr + func (n *NetworkInterface) IsPhysical() bool + func (n *NetworkInterface) MTU() int + func (n *NetworkInterface) Name() string + func (n *NetworkInterface) SpeedMbps() int64