aboutsummaryrefslogblamecommitdiffstats
path: root/config/config.go
blob: 6cc9036e67778b0fcbd6893e09746fdb13ad40a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

              









                                                                       






                          
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
}