diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-20 01:30:05 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-20 01:30:05 +0200 |
commit | 4652c0e753c88e63ba111d49aa58edc655806c03 (patch) | |
tree | 28d8570676de3d0b5802c265406a82d5ba2bf842 /config | |
parent | 9f49aaed839ae608a0ffdaa0656b3975d3404002 (diff) | |
download | go-git-4652c0e753c88e63ba111d49aa58edc655806c03.tar.gz |
remote and repository base on ConfigStore
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 14 |
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 { |