bios

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Vendor  string `json:"vendor"`
	Version string `json:"version"`
	Date    string `json:"date"`
	// contains filtered or unexported fields
}

Info defines BIOS release information

func New

func New(opts ...*option.Option) (*Info, error)

New returns a pointer to a Info struct containing information about the host's BIOS

func (*Info) JSONString

func (info *Info) JSONString(indent bool) string

JSONString returns a string with the BIOS information formatted as JSON under a top-level "bios:" key

func (*Info) String

func (i *Info) String() string

func (*Info) YAMLString

func (info *Info) YAMLString() string

YAMLString returns a string with the BIOS information formatted as YAML under a top-level "dmi:" key

Jump to

Keyboard shortcuts

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