Skip to content

Commit

Permalink
Merge pull request #67 from davidebriani/update-forwarder-session-int…
Browse files Browse the repository at this point in the history
…erfaces

Update the interfaces relative to forwarder sessions
  • Loading branch information
rbino authored Feb 28, 2024
2 parents c7dfb17 + d9eb3a5 commit 5822e3c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"interface_name": "io.edgehog.devicemanager.RemoteTerminalRequest",
"interface_name": "io.edgehog.devicemanager.ForwarderSessionRequest",
"version_major": 0,
"version_minor": 1,
"type": "datastream",
"ownership": "server",
"aggregation": "object",
"description": "Configuration to open a remote terminal from a device to a certain host.",
"description": "Configuration to open a session with the Edgehog Forwarder from a device to a certain host.",
"mappings": [
{
"endpoint": "/request/session_token",
Expand All @@ -27,6 +27,13 @@
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"description": "The IP address or host name the device must connect to."
},
{
"endpoint": "/request/secure",
"type": "boolean",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"description": "Indicates whether the connection should use TLS, i.e. 'ws' or 'wss' scheme."
}
]
}
17 changes: 17 additions & 0 deletions io.edgehog.devicemanager.ForwarderSessionState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"interface_name": "io.edgehog.devicemanager.ForwarderSessionState",
"version_major": 0,
"version_minor": 1,
"type": "properties",
"ownership": "device",
"description": "Information provided by the device about the status of a forwarder session.",
"mappings": [
{
"endpoint": "/%{session_token}/status",
"type": "string",
"allow_unset": true,
"description": "Indicates if the device is connecting, or connected to a forwarder session.",
"doc": "An enum with the following possible values: Connecting | Connected."
}
]
}
16 changes: 0 additions & 16 deletions io.edgehog.devicemanager.ForwarderSessionsState.json

This file was deleted.

0 comments on commit 5822e3c

Please sign in to comment.