Skip to content

Commit

Permalink
✨ Expose a list of valid buckets on main storage ns
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Oct 18, 2024
1 parent 88d8570 commit 015fd5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/src/app/storage.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 015fd5b

Please sign in to comment.