blob: b70cebcfac601fa2b33041ed4ee5ef20a953a97e (
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
DeleteRemote(name string) error
}
type RemoteConfig struct {
Name string
URL string
Fetch RefSpec
}
|