Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 645 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 645 Bytes

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