From b48f1f2c372d1fa7bca155c449c590d852a03511 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 26 Sep 2017 21:33:50 +0200 Subject: Add cloudstorage support For now Openstack Swift is supported. But it should be pretty easy to implement other Swift / S3 like object storages. --- storage/registry/registry.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 storage/registry/registry.go (limited to 'storage/registry') 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(), +} -- cgit v1.2.3-70-g09d2