aboutsummaryrefslogtreecommitdiff
path: root/idl/k2v.smithy
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-04-10 17:12:53 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-04-10 17:12:53 +0200
commit0fbc9bbb05dd9dcfc4c064e20113629fd1af8de9 (patch)
treec0c999057cf6dbbae9072f4f964b61b286d15397 /idl/k2v.smithy
parenta2a35ac7a87fce2e38b8406f083e2350d4181b69 (diff)
downloadgarage-0fbc9bbb05dd9dcfc4c064e20113629fd1af8de9.tar.gz
garage-0fbc9bbb05dd9dcfc4c064e20113629fd1af8de9.zip
wip smithy
Diffstat (limited to 'idl/k2v.smithy')
-rw-r--r--idl/k2v.smithy53
1 files changed, 53 insertions, 0 deletions
diff --git a/idl/k2v.smithy b/idl/k2v.smithy
new file mode 100644
index 00000000..62eb106b
--- /dev/null
+++ b/idl/k2v.smithy
@@ -0,0 +1,53 @@
+$version: "2"
+namespace org.deuxfleurs.garage.k2v
+
+service Item {
+ version: "2023-04-10"
+ resources: [ Item ]
+ operations: [ PollItem ]
+}
+
+resource Item {
+ read: ReadItem
+ put: InsertItem
+ delete: DeleteItem
+ list: ReadIndex
+}
+
+operation ReadItem {
+ input: ReadItemInput
+ output: ReadItemOutput
+}
+
+@input
+structure ReadItemInput {
+ bucket: String
+ partitionKey: String
+ sortKey: String
+}
+
+@output
+union ReadItemOutput {
+ list: ReadItemOutputList
+ raw: blob
+}
+
+@sparse
+list ReadItemOutputList {
+ member: String
+}
+
+operation PollItem {
+ input:
+ output:
+}
+
+operation InsertItem {
+ input:
+ output:
+}
+
+operation DeleteItem {
+ input:
+ output:
+}