aboutsummaryrefslogtreecommitdiff
path: root/storage/local
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2018-01-15 07:39:49 +0100
committerLaria Carolin Chabowski <laria@laria.me>2018-01-15 07:39:49 +0100
commit62eef384330f652edd17732240ae0d82685c0914 (patch)
tree1ebf60a5baada7e5bd32c44ed0bafbe264958ca9 /storage/local
parentfc37a9d8e4e240a8fbf297919490c6df7e676d63 (diff)
downloadpetrific-62eef384330f652edd17732240ae0d82685c0914.tar.gz
petrific-62eef384330f652edd17732240ae0d82685c0914.tar.bz2
petrific-62eef384330f652edd17732240ae0d82685c0914.zip
Add command to restore index of a cloud storage
Diffstat (limited to 'storage/local')
-rw-r--r--storage/local/local.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/local/local.go b/storage/local/local.go
index ae39eb5..8b48b2e 100644
--- a/storage/local/local.go
+++ b/storage/local/local.go
@@ -128,6 +128,10 @@ func (l LocalStorage) List(typ objects.ObjectType) ([]objects.ObjectId, error) {
return l.index.List(typ), nil
}
+func (LocalStorage) Subcmds() map[string]storage.StorageSubcmd {
+ return make(map[string]storage.StorageSubcmd)
+}
+
func (l LocalStorage) Close() error {
f, err := os.Create(joinPath(l.Path, "index"))
if err != nil {