-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpacmanconf.go
46 lines (42 loc) · 1.07 KB
/
pacmanconf.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package pacmanconf
type Repository struct {
Name string
Servers []string
SigLevel []string
Usage []string
}
type Config struct {
RootDir string
DBPath string
CacheDir []string
HookDir []string
GPGDir string
LogFile string
HoldPkg []string
IgnorePkg []string
IgnoreGroup []string
Architecture []string
XferCommand string
NoUpgrade []string
NoExtract []string
CleanMethod []string
SigLevel []string
LocalFileSigLevel []string
RemoteFileSigLevel []string
UseSyslog bool
Color bool
UseDelta float64
TotalDownload bool
CheckSpace bool
VerbosePkgLists bool
DisableDownloadTimeout bool
Repos []Repository
}
func (conf *Config) Repository(name string) *Repository {
for _, repo := range conf.Repos {
if repo.Name == name {
return &repo
}
}
return nil
}