summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md39
1 files changed, 38 insertions, 1 deletions
diff --git a/README.md b/README.md
index 32ebf55..6247e70 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,39 @@
# skopos
-A gRPC server that facilitates provisioning and updating containers
+A gRPC server that facilitates provisioning and updating containers.
+
+## Usage
+### List USB Devices
+Replace IP address accordingly.
+```bash
+grpcurl -plaintext -import-path ./proto -proto ormos.proto -d '{}' '10.0.0.42:50052' unit.containers.v0.Ormos.ListUsbDevices
+```
+
+Example output (device not mounted):
+```json
+{
+ "devices": [
+ {
+ "devicePath": "/dev/sda"
+ },
+ {
+ "devicePath": "/dev/sda1"
+ }
+ ]
+}
+```
+
+Example output (device mounted):
+```json
+{
+ "devices": [
+ {
+ "devicePath": "/dev/sda"
+ },
+ {
+ "devicePath": "/dev/sda1",
+ "isMounted": true,
+ "mountPoint": "/mnt/usb"
+ }
+ ]
+}
+```