init commit
This commit is contained in:
@@ -2,13 +2,14 @@ package volume
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"floares/config"
|
||||
"floares/lib/model"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func ListJsons() model.VolumesJson {
|
||||
req, _ := http.NewRequest("GET", "http://127.0.0.1:8888/volumes", nil)
|
||||
req, _ := http.NewRequest("GET", config.Entrypoint+"/volumes", nil)
|
||||
res, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
log.Println("request for volume list error:", err)
|
||||
|
||||
Reference in New Issue
Block a user