diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-09-26 21:33:50 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 15:01:38 +0200 |
commit | b48f1f2c372d1fa7bca155c449c590d852a03511 (patch) | |
tree | 29d468067d6381fdb3a810c9f05dde8daccc06df /storage/index.go | |
parent | b2742dc28d1ff9001cd784455bbdf9cf29539c30 (diff) | |
download | petrific-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/index.go')
-rw-r--r-- | storage/index.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/index.go b/storage/index.go index f34abab..1d01b93 100644 --- a/storage/index.go +++ b/storage/index.go @@ -69,3 +69,11 @@ func (idx Index) Load(r io.Reader) error { } return scan.Err() } + +func (a Index) Combine(b Index) { + for t, objs := range b { + for id := range objs { + a[t][id] = struct{}{} + } + } +} |