mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Split cluster handler into smaller files
This commit is contained in:
66
docs/docs.go
66
docs/docs.go
@@ -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": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user