Integrant lifecycle for the storage module.
Config key:
:boundary/storage {:provider :local :root "uploads"} ; local filesystem {:provider :s3 :bucket "b" :region "eu-west-1"} ; AWS S3 / compatible {:provider :gcs :bucket "b" :project-id "p"} ; Google Cloud Storage
Returns {:provider <kw> :storage <IFileStorage> :service <IStorageService>}. Consumers (e.g. :boundary/storage-routes) use :service.
The :local provider accepts the catalogue's :root as an alias for the
local adapter's :base-path.
Integrant lifecycle for the storage module.
Config key:
:boundary/storage
{:provider :local :root "uploads"} ; local filesystem
{:provider :s3 :bucket "b" :region "eu-west-1"} ; AWS S3 / compatible
{:provider :gcs :bucket "b" :project-id "p"} ; Google Cloud Storage
Returns {:provider <kw> :storage <IFileStorage> :service <IStorageService>}.
Consumers (e.g. :boundary/storage-routes) use :service.
The `:local` provider accepts the catalogue's `:root` as an alias for the
local adapter's `:base-path`.No vars found in this namespace.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |