From 015fd5bc3ad55bb9760e655f829e0b5fa4d61c00 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 15 Oct 2024 17:52:51 +0200 Subject: [PATCH] :sparkles: Expose a list of valid buckets on main storage ns --- backend/src/app/storage.clj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/src/app/storage.clj b/backend/src/app/storage.clj index 861730e33..617f7576f 100644 --- a/backend/src/app/storage.clj +++ b/backend/src/app/storage.clj @@ -32,6 +32,16 @@ :assets-s3 :s3 :fs))) +(def valid-buckets + #{"file-media-object" + "team-font-variant" + "file-object-thumbnail" + "file-thumbnail" + "profile" + "file-data" + "file-data-fragment" + "file-change"}) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Storage Module State ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -257,6 +267,8 @@ (pos? (db/get-update-count res)))) (dm/export impl/calculate-hash) +(dm/export impl/get-hash) +(dm/export impl/get-size) (defn configure [storage connectable]