aboutsummaryrefslogtreecommitdiffstats
path: root/storage/memory/storage.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-21 01:07:15 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-21 01:07:15 +0200
commitb32e92d013f6fe0d97f094c4b1991100d568f980 (patch)
treec80e847e3409fe0303a3ebabdf3e2a01c45b37f3 /storage/memory/storage.go
parentc9f0c29f423f9bb26f32d6e8c7098f275171afb9 (diff)
downloadgo-git-b32e92d013f6fe0d97f094c4b1991100d568f980.tar.gz
remote and repository base on ConfigStore
Diffstat (limited to 'storage/memory/storage.go')
-rw-r--r--storage/memory/storage.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go
index e242008..d67368f 100644
--- a/storage/memory/storage.go
+++ b/storage/memory/storage.go
@@ -89,6 +89,11 @@ func (c *ConfigStorage) SetRemote(r *config.RemoteConfig) error {
return nil
}
+func (c *ConfigStorage) DeleteRemote(name string) error {
+ delete(c.RemotesConfig, name)
+ return nil
+}
+
// ObjectStorage is the implementation of core.ObjectStorage for memory.Object
type ObjectStorage struct {
Objects map[core.Hash]core.Object