Gofish is a Golang library for interacting with DMTF Redfish and SNIA Swordfish enabled devices.
Basic usage would be:
package main
import (
"fmt"
"github.com/stmcginnis/gofish"
)
func main() {
c, err := gofish.ConnectDefault("http://localhost:5000")
if err != nil {
panic(err)
}
service := c.Service
chassis, err := service.Chassis()
if err != nil {
panic(err)
}
for _, chass := range chassis {
fmt.Printf("Chassis: %#v\n\n", chass)
}
}