add vendor code

This commit is contained in:
Johannes Scheuermann
2016-09-13 22:03:03 +02:00
parent 0b7cb5f2ae
commit 799c54fb20
7 changed files with 324 additions and 0 deletions

35
vendor/github.com/quobyte/api/README.md generated vendored Normal file
View File

@@ -0,0 +1,35 @@
# Quobyte API Clients
Get the quoybte api client
```bash
go get github.com/quobyte/api
```
## Usage
```go
package main
import (
"log"
quobyte_api "github.com/quobyte/api"
)
func main() {
client := quobyte_api.NewQuobyteClient("http://apiserver:7860", "user", "password")
req := &quobyte_api.CreateVolumeRequest{
Name: "MyVolume",
RootUserID: "root",
RootGroupID: "root",
ConfigurationName: "base",
}
volume_uuid, err := client.CreateVolume(req)
if err != nil {
log.Fatalf("Error:", err)
}
log.Printf("%s", volume_uuid)
}
```