MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / GetUser

Method GetUser

e2e_framework_test.go:528–535  ·  view source on GitHub ↗
(username string)

Source from the content-addressed store, hash-verified

526}
527
528func (a *authUserStorage) GetUser(username string) (AuthUser, error) {
529 a.lock.Lock()
530 defer a.lock.Unlock()
531 if user, ok := a.users[username]; ok {
532 return user, nil
533 }
534 return nil, message.NewMessage(message.MTest, "User %s not found in test database.", username)
535}
536
537func (a *authUserStorage) RemoveUser(username string) {
538 a.lock.Lock()

Callers

nothing calls this directly

Calls 1

NewMessageFunction · 0.92

Tested by

no test coverage detected