Split cluster handler into smaller files

This commit is contained in:
Ingo Oppermann
2023-07-12 14:18:01 +02:00
parent c0c118340b
commit fe715adbce
12 changed files with 1810 additions and 1532 deletions

View File

@@ -829,7 +829,7 @@ const docTemplate = `{
"v16.?.?"
],
"summary": "Retrieve a map of which process is running on which node",
"operationId": "cluster-3-process-node-map",
"operationId": "cluster-3-db-process-node-map",
"responses": {
"200": {
"description": "OK",
@@ -1111,7 +1111,7 @@ const docTemplate = `{
"v16.?.?"
],
"summary": "List of processes in the cluster",
"operationId": "cluster-3-list-all-node-processes",
"operationId": "cluster-3-get-all-processes",
"parameters": [
{
"type": "string",
@@ -1470,6 +1470,68 @@ const docTemplate = `{
}
},
"/api/v3/cluster/process/{id}/metadata/{key}": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Retrieve the previously stored JSON metadata under the given key. If the key is empty, all metadata will be returned.",
"produces": [
"application/json"
],
"tags": [
"v16.?.?"
],
"summary": "Retrieve JSON metadata stored with a process under a key",
"operationId": "cluster-3-get-process-metadata",
"parameters": [
{
"type": "string",
"description": "Process ID",
"name": "id",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Key for data store",
"name": "key",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Domain to act on",
"name": "domain",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"403": {
"description": "Forbidden",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
},
"put": {
"security": [
{