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

Struct AdminConfigOptions

models/admin_config.go:36–68  ·  view source on GitHub ↗

AdminConfigOptions contains all the server level settings which can be changed at runtime.

Source from the content-addressed store, hash-verified

34// AdminConfigOptions contains all the server level settings which can be
35// changed at runtime.
36type AdminConfigOptions struct {
37 // GitUser refers to which username to use as the global git user.
38 GitUser string `yaml:"git_user"`
39
40 // OrgPrefix refers to the prefix to use when cloning org repos.
41 OrgPrefix string `yaml:"org_prefix"`
42
43 // UserPrefix refers to the prefix to use when cloning user repos.
44 UserPrefix string `yaml:"user_prefix"`
45
46 // InvitePrefix refers to the prefix to use when sshing in with an invite.
47 InvitePrefix string `yaml:"invite_prefix"`
48
49 // ImplicitRepos allows a user with admin access to that area to create
50 // repos by simply pushing to them.
51 ImplicitRepos bool `yaml:"implicit_repos"`
52
53 // UserConfigKeys allows users to specify ssh keys in their own config,
54 // rather than relying on the main admin config.
55 UserConfigKeys bool `yaml:"user_config_keys"`
56
57 // UserConfigRepos allows users to specify repos in their own config, rather
58 // than relying on the main admin config.
59 UserConfigRepos bool `yaml:"user_config_repos"`
60
61 // OrgConfig allows org admins to configure orgs in their own config, rather
62 // than relying on the main admin config.
63 OrgConfig bool `yaml:"org_config"`
64
65 // OrgConfigRepos allows org admins to specify repos in their own config,
66 // rather than relying on the main admin config.
67 OrgConfigRepos bool `yaml:"org_config_repos"`
68}
69
70// DefaultAdminConfigOptions is an object with all values set to their default.
71var DefaultAdminConfigOptions = AdminConfigOptions{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected