Remove scsi non portable code, instead "donut make" implements functionality to instantiate a donut

This commit is contained in:
Harshavardhana
2015-07-15 11:55:49 -07:00
parent 49c705da99
commit 4498662c16
20 changed files with 40 additions and 563 deletions

View File

@@ -32,28 +32,6 @@ func closeResp(resp *http.Response) {
}
}
// GetDisks get disks info of the server at given url
func GetDisks(url string) ([]byte, error) {
op := RPCOps{
Method: "DiskInfo.Get",
Request: rpc.Args{Request: ""},
}
req, err := NewRequest(url, op, http.DefaultTransport)
if err != nil {
return nil, iodine.New(err, nil)
}
resp, err := req.Do()
defer closeResp(resp)
if err != nil {
return nil, iodine.New(err, nil)
}
var reply rpc.DiskInfoReply
if err := jsonrpc.DecodeClientResponse(resp.Body, &reply); err != nil {
return nil, iodine.New(err, nil)
}
return json.MarshalIndent(reply, "", "\t")
}
// GetMemStats get memory status of the server at given url
func GetMemStats(url string) ([]byte, error) {
op := RPCOps{