Skip to content

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

License

Notifications You must be signed in to change notification settings

metal-stack/go-hal

 
 

Folders and files

NameName
Last commit message
Last commit date
Sep 30, 2024
Oct 2, 2024
Oct 11, 2023
Nov 18, 2024
Oct 2, 2024
Jan 16, 2023
Oct 12, 2020
Oct 12, 2020
Feb 14, 2020
Aug 4, 2020
May 12, 2020
May 7, 2020
Sep 30, 2024
Sep 30, 2024
Jun 27, 2022
Apr 8, 2021

Repository files navigation

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