blob: 6cc9036e67778b0fcbd6893e09746fdb13ad40a7 (
plain) (
tree)
|
|
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
}
|