/go-hal

server hardware abstraction, tries to lower the burden of supporting different server vendors

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

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