https://github.com/satyamz/mayaclient
https://github.com/satyamz/mayaclient
client openebs openebs-storage
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/satyamz/mayaclient
- Owner: satyamz
- License: apache-2.0
- Created: 2017-03-10T04:57:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T16:37:27.000Z (over 9 years ago)
- Last Synced: 2024-06-20T03:27:47.958Z (about 2 years ago)
- Topics: client, openebs, openebs-storage
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Simple HTTP Client for mayaserver
[](https://goreportcard.com/report/github.com/satyamz/mayaclient)
##### Example usage
1. Get the client `go get github.com/satyamz/mayaclient`
2. You can write `mayacli.go` as given below
```golang
package main
import (
"fmt"
"github.com/satyamz/mayaclient" )
func main() {
c := mayaclient.Client{ URL : "http://127.0.0.1:5656/latest/meta-data/instance-id",}
fmt.Println(c.MayaClient())
}
```
3. Run `mayacli.go` using `go run mayacli.go` or `go build mayacli.go ` & `./mayacli`