Config represents the config which has been loaded from all repos.
| 11 | |
| 12 | // Config represents the config which has been loaded from all repos. |
| 13 | type Config struct { |
| 14 | Invites map[string]string |
| 15 | Groups map[string][]string |
| 16 | Orgs map[string]*models.OrgConfig |
| 17 | Users map[string]*models.AdminConfigUser |
| 18 | Repos map[string]*models.RepoConfig |
| 19 | Options models.AdminConfigOptions |
| 20 | PrivateKeys []models.PrivateKey |
| 21 | |
| 22 | // Internal state |
| 23 | fs billy.Filesystem |
| 24 | publicKeys map[string]string `yaml:"-"` |
| 25 | |
| 26 | // We store any override hashes for repos so this can be used for hooks as |
| 27 | // well. |
| 28 | adminRepoHash string |
| 29 | orgRepos map[string]string |
| 30 | userRepos map[string]string |
| 31 | } |
| 32 | |
| 33 | // NewConfig returns an empty config, attached to the given fs. In general, Load |
| 34 | // should be called after creating a new config at a bare minimum. |
nothing calls this directly
no outgoing calls
no test coverage detected