1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package config 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 { Name string URL string Fetch RefSpec }