aboutsummaryrefslogtreecommitdiff
path: root/storage/registry
diff options
context:
space:
mode:
Diffstat (limited to 'storage/registry')
-rw-r--r--storage/registry/registry.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/storage/registry/registry.go b/storage/registry/registry.go
new file mode 100644
index 0000000..dec7c32
--- /dev/null
+++ b/storage/registry/registry.go
@@ -0,0 +1,13 @@
+package registry
+
+import (
+ "code.laria.me/petrific/storage"
+ "code.laria.me/petrific/storage/cloud"
+)
+
+// List af all available storage types
+var StorageTypes = map[string]storage.CreateStorageFromConfig{
+ "local": storage.LocalStorageFromConfig,
+ "memory": storage.MemoryStorageFromConfig,
+ "openstack-swift": cloud.SwiftStorageCreator(),
+}