v1.10.0
This commit is contained in:
@@ -15,10 +15,14 @@ var DEPRECATED_GROUPS = []string{
|
||||
"//cloudbroker/pgpu/",
|
||||
"/cloudapi/gpu/",
|
||||
"/cloudapi/portforwarding/",
|
||||
"/cloudapi/account/create",
|
||||
"/cloudapi/account/listVMs",
|
||||
"/cloudapi/account/listCS",
|
||||
"/cloudapi/account/getStats",
|
||||
"/cloudapi/vgpu/list",
|
||||
"/cloudapi/compute/affinityGroupCheckStart",
|
||||
"/cloudapi/vins/staticRouteAccessGrant",
|
||||
"/cloudapi/vins/staticRouteAccessRevoke",
|
||||
|
||||
"/cloudbroker/account/listVMs",
|
||||
"/cloudbroker/account/listCS",
|
||||
@@ -42,6 +46,9 @@ var DEPRECATED_GROUPS = []string{
|
||||
"/cloudbroker/iaas/",
|
||||
"/cloudbroker/diagnostics/",
|
||||
"/cloudbroker/milestones/",
|
||||
"/cloudbroker/compute/affinityGroupCheckStart",
|
||||
"/cloudbroker/vins/staticRouteAccessGrant",
|
||||
"/cloudbroker/vins/staticRouteAccessRevoke",
|
||||
}
|
||||
|
||||
// getUrlsFromBytes converts bytes to array of urls strings
|
||||
@@ -95,6 +102,26 @@ func getMissingDecortUrls(jsonUrls, decortUrls []string) []string {
|
||||
return result
|
||||
}
|
||||
|
||||
// getMissingDecortUrls returns array of url strings that are present in json swagger docs and absent in decort-sdk handlers.
|
||||
func getDeprecatedDecortUrls(jsonUrls, decortUrls []string) []string {
|
||||
result := make([]string, 0, len(decortUrls))
|
||||
for _, decortUrl := range decortUrls {
|
||||
var found bool
|
||||
for _, jsonUrl := range jsonUrls {
|
||||
if jsonUrl == decortUrl {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if !found && validateUrlFromJson(decortUrl) {
|
||||
result = append(result, decortUrl)
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
// readUrlFromDir reads all url addresses from given directory and its subdirectories and subfiles and returns array of urls found. Capacity will
|
||||
func readUrlFromDir(dirName string, capacity int) []string {
|
||||
result := make([]string, 0, capacity)
|
||||
|
||||
Reference in New Issue
Block a user