aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
blob: b70cebcfac601fa2b33041ed4ee5ef20a953a97e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}