# README
go-hal a hardware abstraction layer for servers
go server hardware abstraction, tries to lower the burden of supporting different server vendors.
Example usage:
package main
import (
"fmt"
"github.com/metal-stack/go-hal/detect"
)
func main() {
smcInBand, err := detect.ConnectInBand()
if err != nil {
panic(err)
}
firmware, err := smcInBand.Firmware()
if err != nil {
panic(err)
}
fmt.Println(firmware)
// UEFI
err = smcInBand.PowerOff()
}
# Functions
GuessPowerState try to figure out the power state of the server.
# Constants
BootTargetBIOS the server boots into Bios.
BootTargetDisk the server boots from disk.
BootTargetPXE the server boots via PXE.
FirmwareModeLegacy or BIOS.
FirmwareModeUEFI the server boots in uefi mode.
FirmwareModeUnknown server is in unknown firmware state.
IdentifyLEDStateOff the LED is off.
IdentifyLEDStateOn the LED is on.
IdentifyLEDStateUnknown the LED is unknown.
PowerOffState the server is powered off.
PowerOnState the server is powered on.
PowerUnknownState the server power state is not known.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author