platform

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIOS

type BIOS struct {
	Date    string `json:"date"`
	Vendor  string `json:"vendor"`
	Version string `json:"version"`
}

BIOS captures the platform BIOS values.

func (*BIOS) String added in v1.3.0

func (b *BIOS) String() string

String representation of the struct.

type Board

type Board struct {
	Name   string `json:"Name"`
	Vendor string `json:"Vendor"`
}

Board captures the platform Board values.

func (*Board) String added in v1.3.0

func (b *Board) String() string

String representation of the struct.

type Probe

type Probe struct {
	BIOS  BIOS  `json:"bios"`
	Board Board `json:"board"`
	// contains filtered or unexported fields
}

Probe struct for platform. Captures the BIOS and Board values.

func New

func New() (*Probe, error)

New initializes new probe struct and probes the system.

func (*Probe) JSON

func (p *Probe) JSON() string

JSON representation of the struct.

func (*Probe) String

func (p *Probe) String() string

String representation of the struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL