aboutsummaryrefslogblamecommitdiffstats
path: root/config/config.go
blob: b70cebcfac601fa2b33041ed4ee5ef20a953a97e (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
	DeleteRemote(name string) error
}

type RemoteConfig struct {
	Name  string
	URL   string
	Fetch RefSpec
}