aboutsummaryrefslogtreecommitdiff
path: root/storage/registry
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-09-26 21:33:50 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-10-03 15:01:38 +0200
commitb48f1f2c372d1fa7bca155c449c590d852a03511 (patch)
tree29d468067d6381fdb3a810c9f05dde8daccc06df /storage/registry
parentb2742dc28d1ff9001cd784455bbdf9cf29539c30 (diff)
downloadpetrific-b48f1f2c372d1fa7bca155c449c590d852a03511.tar.gz
petrific-b48f1f2c372d1fa7bca155c449c590d852a03511.tar.bz2
petrific-b48f1f2c372d1fa7bca155c449c590d852a03511.zip
Add cloudstorage support
For now Openstack Swift is supported. But it should be pretty easy to implement other Swift / S3 like object storages.
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(),
+}