gofish

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 63

README

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"

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

func main() {
    c, err := gofish.APIClient("http://localhost:5000", nil)
    if err != nil {
        panic(err)
    }

    service, err := gofish.ServiceRoot(c)
    if err != nil {
        panic(err)
    }

    chassis, err := service.Chassis()
    if err != nil {
        panic(err)
    }

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
tools
generator module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL