MCPcopy Create free account
hub / github.com/belak/gitdir / Config

Struct Config

config.go:13–31  ·  view source on GitHub ↗

Config represents the config which has been loaded from all repos.

Source from the content-addressed store, hash-verified

11
12// Config represents the config which has been loaded from all repos.
13type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected