Code Review
/
src
/
xds
/
xds-cli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added sdks install / uninstall / abort commands.
[src/xds/xds-cli.git]
/
utils.go
diff --git
a/utils.go
b/utils.go
index
d632415
..
65b67d3
100644
(file)
--- a/
utils.go
+++ b/
utils.go
@@
-21,6
+21,7
@@
package main
import (
"encoding/json"
"fmt"
import (
"encoding/json"
"fmt"
+ "strconv"
"github.com/franciscocpg/reflectme"
"github.com/iotbzh/xds-agent/lib/xaapiv1"
"github.com/franciscocpg/reflectme"
"github.com/iotbzh/xds-agent/lib/xaapiv1"
@@
-83,6
+84,11
@@
func XdsServerIndexGet() int {
return 0
}
return 0
}
+// XdsServerComputeURL computes the URL used to access to XDS Server API
+func XdsServerComputeURL(endURL string) string {
+ return "servers/" + strconv.Itoa(XdsServerIndexGet()) + endURL
+}
+
// ProjectsListGet Get the list of existing projects
func ProjectsListGet(prjs *[]xaapiv1.ProjectConfig) error {
var data []byte
// ProjectsListGet Get the list of existing projects
func ProjectsListGet(prjs *[]xaapiv1.ProjectConfig) error {
var data []byte