syntax = "proto3"; package unit.containers.v0; service Ormos { rpc ListUsbDevices (ListUsbDevicesRequest) returns (ListUsbDevicesResponse) {} rpc MountUsbDevice (MountUsbDeviceRequest) returns (MountUsbDeviceResponse) {} rpc UnmountUsbDevice (UnmountUsbDeviceRequest) returns (UnmountUsbDeviceResponse) {} rpc ListImageArchives (ListImageArchivesRequest) returns (ListImageArchivesResponse) {} rpc LoadImageArchive (LoadImageArchiveRequest) returns (LoadImageArchiveResponse) {} rpc InspectImageArchive (InspectImageArchiveRequest) returns (InspectImageArchiveResponse) {} rpc DoPodmanAutoUpdate (DoPodmanAutoUpdateRequest) returns (DoPodmanAutoUpdateResponse) {} } message MountUsbDeviceRequest { string device_path = 1; string mount_point = 2; } message MountUsbDeviceResponse { bool is_success = 1; string error_message = 2; } message ListUsbDevicesRequest {} message ListUsbDevicesResponse { repeated UsbDevice devices = 1; } message UnmountUsbDeviceRequest { string mount_point = 1; } message UnmountUsbDeviceResponse { bool is_success = 1; string error_message = 2; } message UsbDevice { string device_path = 1; bool is_mounted = 2; string mount_point = 3; } message ListImageArchivesRequest { string path = 1; } message ListImageArchivesResponse { repeated ImageArchive image_archives = 1; } message ImageArchive { string file_path = 1; int64 file_size_bytes = 2; string sha256_checksum = 3; } message LoadImageArchiveRequest { string file_path = 1; string image_name = 2; string image_tag = 3; } message LoadImageArchiveResponse { bool is_success = 1; string error_message = 2; } message InspectImageArchiveRequest { string file_path = 1; } message InspectImageArchiveResponse { bool is_success = 1; string stdout = 2; string stderr = 3; } message DoPodmanAutoUpdateRequest {} message DoPodmanAutoUpdateResponse { bool is_success = 1; }