Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/belak/gitdir
/ functions
Functions
168 in github.com/belak/gitdir
⨍
Functions
168
◇
Types & classes
25
↓ 1 callers
Function
ensureAdminUserYaml
(data []byte, username, pubKey string)
config_ensure.go:233
↓ 1 callers
Method
ensureConfig
(adminRepo *git.Repository)
config.go:107
↓ 1 callers
Function
ensureHooks
(fs billy.Filesystem)
internal/git/repository.go:132
↓ 1 callers
Function
ensureSampleConfigYaml
(data []byte)
config_ensure.go:21
↓ 1 callers
Function
ensureSampleGroups
(targetNode *yaml.Node)
config_ensure.go:83
↓ 1 callers
Function
ensureSampleInvites
(targetNode *yaml.Node)
config_ensure.go:40
↓ 1 callers
Function
ensureSampleOptions
(targetNode *yaml.Node)
config_ensure.go:199
↓ 1 callers
Function
ensureSampleOrgs
(targetNode *yaml.Node)
config_ensure.go:108
↓ 1 callers
Function
ensureSampleUsers
(targetNode *yaml.Node)
config_ensure.go:60
↓ 1 callers
Function
handlePanic
(logger *zerolog.Logger)
utils.go:59
↓ 1 callers
Method
loadAdminConfig
(adminRepo *git.Repository)
config_admin.go:56
↓ 1 callers
Method
loadOrgConfig
(orgName string)
config_org.go:25
↓ 1 callers
Method
loadOrgConfigs
()
config_org.go:8
↓ 1 callers
Method
loadUserConfig
(username string)
config_user.go:25
↓ 1 callers
Method
loadUserConfigs
()
config_user.go:8
↓ 1 callers
Method
lookupOrgRepo
(path string)
repo.go:116
↓ 1 callers
Method
lookupTopLevelRepo
(path string)
repo.go:194
↓ 1 callers
Method
lookupUserRepo
(path string)
repo.go:155
↓ 1 callers
Function
newAdminGitSignature
()
internal/git/utils.go:10
↓ 1 callers
Function
runCommand
TODO: see if this can be cleaned up.
utils.go:89
↓ 1 callers
Method
runUpdateHook
( lookup *RepoLookup, user *User, pk *models.PublicKey, oldHash string, newHash string, ref string, )
hooks.go:54
↓ 1 callers
Function
testCheckRepoAccess
(t *testing.T, c *Config, u *User, access allRepoAccessLevels)
repo_test.go:287
↓ 1 callers
Function
testImplicitRepoAccess
(t *testing.T, c *Config, u *User, access allImplicitAccessLevels)
repo_test.go:298
↓ 1 callers
Method
validateAdmins
()
config_validate.go:37
↓ 1 callers
Method
validateGroupLoop
()
config_validate.go:47
↓ 1 callers
Method
validateGroupLoopInternal
(groupName string, groupPath []string)
config_validate.go:58
↓ 1 callers
Method
validatePublicKey
(pk *models.PublicKey)
config_validate.go:29
↓ 1 callers
Method
validateUser
(u *User)
config_validate.go:21
Method
DirExists
DirExists returns true if the given path exists and is a directory in the repository worktree.
internal/git/operations.go:33
Method
MarshalPrivateKey
MarshalPrivateKey implements PrivateKey.MarshalPrivateKey.
models/private_key.go:55
Method
MarshalPrivateKey
MarshalPrivateKey implements PrivateKey.MarshalPrivateKey.
models/private_key.go:112
Function
NewServer
NewServer configures a new gitdir server and attempts to load the config from the admin repo.
ssh_server.go:32
Method
Serve
Serve listens on the given listener for new SSH connections.
ssh_server.go:120
Method
String
String implements Stringer.
repo_perms.go:25
Method
String
()
context.go:16
Method
String
String implements fmt.Stringer.
models/public_key.go:51
Function
TestAccessLevelStringer
(t *testing.T)
repo_test.go:106
Function
TestCheckListsForUser
(t *testing.T)
repo_test.go:248
Function
TestCheckUserRepoAccess
(t *testing.T)
repo_test.go:314
Function
TestContextKey
(t *testing.T)
context_test.go:14
Function
TestCtxConfig
(t *testing.T)
context_test.go:83
Function
TestCtxExtract
(t *testing.T)
context_test.go:64
Function
TestCtxLogger
(t *testing.T)
context_test.go:134
Function
TestCtxPublicKey
(t *testing.T)
context_test.go:154
Function
TestCtxSetConfig
(t *testing.T)
context_test.go:77
Function
TestCtxSetLogger
(t *testing.T)
context_test.go:122
Function
TestCtxSetPublicKey
(t *testing.T)
context_test.go:148
Function
TestCtxSetUser
(t *testing.T)
context_test.go:99
Function
TestCtxUser
(t *testing.T)
context_test.go:105
Function
TestDoesGroupContainUser
(t *testing.T)
repo_test.go:236
Function
TestGetExitStatusFromError
(t *testing.T)
utils_test.go:67
Function
TestHandlePanic
(t *testing.T)
utils_test.go:51
Function
TestListContainsStr
(t *testing.T)
utils_test.go:45
Function
TestLookupUserFromInvite
(t *testing.T)
user_test.go:120
Function
TestLookupUserFromKey
(t *testing.T)
user_test.go:43
Function
TestLookupUserFromUsername
(t *testing.T)
user_test.go:12
Function
TestNewMultiError
(t *testing.T)
utils_test.go:12
Function
TestRepoLookup
(t *testing.T)
repo_test.go:116
Function
TestRepoTypeStringer
(t *testing.T)
repo_test.go:94
Function
TestRunCommand
(t *testing.T)
utils_test.go:116
Function
TestSanitize
(t *testing.T)
utils_test.go:99
Function
TestWithLogger
(t *testing.T)
context_test.go:128
Function
TestWriteStringFmt
(t *testing.T)
utils_test.go:57
Method
UnmarshalYAML
UnmarshalYAML implements yaml.Unmarshaler.UnmarshalYAML.
models/public_key.go:34
Function
ensureSampleConfig
(data []byte)
config_ensure.go:8
Method
handlePublicKey
(ctx ssh.Context, incomingKey ssh.PublicKey)
ssh_server.go:144
Method
handleSession
(s ssh.Session)
ssh_server.go:186
Function
main
()
cmd/gitdir/main.go:10
← previous
101–168 of 168, ranked by callers