lnrpc+lncli: add TerminateSession command
This commit is contained in:
9 files changed
+657
-216
No files matched your search
@@ -171,6 +171,39 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/watchtower/client/sessions/terminate/{session_id}": {
|
||||
"post": {
|
||||
"summary": "lncli: `wtclient session terminate`\nTerminate terminates the given session and marks it as terminal so that\nit is not used for backups anymore.",
|
||||
"operationId": "WatchtowerClient_TerminateSession",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/wtclientrpcTerminateSessionResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "session_id",
|
||||
"description": "The ID of the session that should be terminated.",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"WatchtowerClient"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/watchtower/client/stats": {
|
||||
"get": {
|
||||
"summary": "lncli: `wtclient stats`\nStats returns the in-memory statistics of the client since startup.",
|
||||
@@ -400,6 +433,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wtclientrpcTerminateSessionResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "A string describing the action that took place."
|
||||
}
|
||||
}
|
||||
},
|
||||
"wtclientrpcTower": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user