Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
school
.gitignore
LICENSE
Makefile
README.md
client.go
client_test.go

README.md

Gofish - Redfish and Swordfish client library

Go Report Card Releases LICENSE

Introduction

Gofish is a Golang library for interacting with DMTF Redfish and SNIA Swordfish enabled devices.

Usage

Basic usage would be:

package main

import (
    "fmt"

    "github.com/stmcginnis/gofish"
    "github.com/stmcginnis/gofish/school"
)

func main() {
    c := gofish.APIClient("localhost", 5000, false)
    service, err := school.ServiceRoot(c)

    chassis, err := service.Chassis()
    for _, chass := range chassis {
        fmt.Printf("Chassis: %#v\n\n", chass)
    }
}