MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / getUsername

Function getUsername

drivers/github/util.go:99–105  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

97}
98
99func getUsername(ctx context.Context) string {
100 user, ok := ctx.Value(conf.UserKey).(*model.User)
101 if !ok {
102 return "<system>"
103 }
104 return user.Username
105}
106
107func loadPrivateKey(key, passphrase string) (*openpgp.Entity, error) {
108 entityList, err := openpgp.ReadArmoredKeyRing(strings.NewReader(key))

Callers 6

MakeDirMethod · 0.85
MoveMethod · 0.85
RenameMethod · 0.85
CopyMethod · 0.85
RemoveMethod · 0.85
PutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected