An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Gofish - Redfish and Swordfish client library

[![Go Doc](https://godoc.org/github.com/stmcginnis/gofish?status.svg)](http://godoc.org/github.com/stmcginnis/gofish)
[![Go Report Card](https://goreportcard.com/badge/github.com/stmcginnis/gofish?branch=main)](https://goreportcard.com/report/github.com/stmcginnis/gofish)
[![Releases](https://img.shields.io/github/release/stmcginnis/gofish/all.svg?style=flat-square)](https://github.com/stmcginnis/gofish/releases)
[![LICENSE](https://img.shields.io/github/license/stmcginnis/gofish.svg?style=flat-square)](https://github.com/stmcginnis/gofish/blob/main/LICENSE)

![Gofish Logo](./images/gofish200x117.png)

## 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)
}
}
```