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

Function NewAdminConfig

models/admin_config.go:79–91  ·  view source on GitHub ↗

NewAdminConfig returns a blank admin config with any defaults set.

()

Source from the content-addressed store, hash-verified

77
78// NewAdminConfig returns a blank admin config with any defaults set.
79func NewAdminConfig() *AdminConfig {
80 return &AdminConfig{
81 Invites: make(map[string]string),
82 Users: make(map[string]*AdminConfigUser),
83 Orgs: make(map[string]*OrgConfig),
84 Repos: make(map[string]*RepoConfig),
85 Groups: make(map[string][]string),
86
87 // Defaults. These should be set in ensure config, but we have them here
88 // for reference.
89 Options: DefaultAdminConfigOptions,
90 }
91}
92
93// ParseAdminConfig will return an AdminConfig parsed from the given data. No
94// additional validation is done.

Callers 1

ParseAdminConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected