diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -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" + } + ] +} +``` |
