-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from rgallor/main
feat(forwarder): add interfaces to handle a remote terminal session
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"interface_name": "io.edgehog.devicemanager.ForwarderSessionsState", | ||
"version_major": 0, | ||
"version_minor": 1, | ||
"type": "properties", | ||
"ownership": "device", | ||
"description": "This property is set by a device to provide information about the status of a remote terminal session.", | ||
"mappings": [ | ||
{ | ||
"endpoint": "/%{session_token}/status", | ||
"type": "string", | ||
"description": "Indicates if the device is connecting, connected or disconnected to a remote terminal session.", | ||
"doc": "An enum with the following possible values: Connecting | Connected | Disconnected." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"interface_name": "io.edgehog.devicemanager.RemoteTerminalRequest", | ||
"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.", | ||
"mappings": [ | ||
{ | ||
"endpoint": "/request/session_token", | ||
"type": "string", | ||
"database_retention_policy": "use_ttl", | ||
"database_retention_ttl": 31556952, | ||
"description": "The session token thanks to which the device can authenticates itself through Edgehog." | ||
}, | ||
{ | ||
"endpoint": "/request/port", | ||
"type": "integer", | ||
"database_retention_policy": "use_ttl", | ||
"database_retention_ttl": 31556952, | ||
"description": "The host port the device must connect to." | ||
}, | ||
{ | ||
"endpoint": "/request/host", | ||
"type": "string", | ||
"database_retention_policy": "use_ttl", | ||
"database_retention_ttl": 31556952, | ||
"description": "The IP address or host name the device must connect to." | ||
} | ||
] | ||
} |