xaionaro-go / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gofish - Redfish and Swordfish client library

Go Doc Go Report Card Releases LICENSE

Gofish Logo

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"
)

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

About

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 98.8%Language:Python 0.9%Language:Shell 0.3%Language:Makefile 0.0%