Categorygithub.com/metal-stack/go-hal
modulepackage
0.5.7
Repository: https://github.com/metal-stack/go-hal.git
Documentation: pkg.go.dev

# README

go-hal a hardware abstraction layer for servers

GoDoc

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()
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# 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.

# Interfaces

InBand get and set settings from the server via the inband interface.
OutBand get and set settings from the server via the out of band interface.

# 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