aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:30:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:30:05 +0200
commit4652c0e753c88e63ba111d49aa58edc655806c03 (patch)
tree28d8570676de3d0b5802c265406a82d5ba2bf842 /config
parent9f49aaed839ae608a0ffdaa0656b3975d3404002 (diff)
downloadgo-git-4652c0e753c88e63ba111d49aa58edc655806c03.tar.gz
remote and repository base on ConfigStore
Diffstat (limited to 'config')
-rw-r--r--config/config.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/config.go b/config/config.go
index 88172f4..6cc9036 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1,9 +1,15 @@
package config
-type Config interface {
- Remote(name string) *RemoteConfig
- Remotes() []*RemoteConfig
- SetRemote(*RemoteConfig)
+import "errors"
+
+var (
+ ErrRemoteConfigNotFound = errors.New("remote config not found")
+)
+
+type ConfigStorage interface {
+ Remote(name string) (*RemoteConfig, error)
+ Remotes() ([]*RemoteConfig, error)
+ SetRemote(*RemoteConfig) error
}
type RemoteConfig struct {