https://github.com/stmcginnis/gofish
Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
https://github.com/stmcginnis/gofish
golang redfish swordfish
Last synced: 4 months ago
JSON representation
Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
- Host: GitHub
- URL: https://github.com/stmcginnis/gofish
- Owner: stmcginnis
- License: bsd-3-clause
- Created: 2019-02-01T22:18:30.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-01-29T22:55:43.000Z (5 months ago)
- Last Synced: 2026-01-30T12:19:10.687Z (5 months ago)
- Topics: golang, redfish, swordfish
- Language: Go
- Homepage:
- Size: 10.9 MB
- Stars: 286
- Watchers: 12
- Forks: 138
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gofish - Redfish and Swordfish client library
[](http://godoc.org/github.com/stmcginnis/gofish)
[](https://goreportcard.com/report/github.com/stmcginnis/gofish)
[](https://github.com/stmcginnis/gofish/releases)
[](https://github.com/stmcginnis/gofish/blob/main/LICENSE)

## Introduction
Gofish is a Golang library for interacting with [DMTF
Redfish](https://www.dmtf.org/standards/redfish) and [SNIA
Swordfish](https://www.snia.org/forums/smi/swordfish) enabled devices.
## Usage ##
Basic usage would be:
```go
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)
}
}
```