aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.go')
-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 {