MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / AddUser

Method AddUser

e2e_framework_test.go:502–502  ·  view source on GitHub ↗

AddUser adds a new user to the in-memory database. You can then add credentials for the SSH connection to the user. If the user already exists, this function throws a panic.

(username string)

Source from the content-addressed store, hash-verified

500 // AddUser adds a new user to the in-memory database. You can then add credentials for the
501 // SSH connection to the user. If the user already exists, this function throws a panic.
502 AddUser(username string) AuthUser
503 // GetUser returns a user with a specific username. If the user is not found, this function
504 // throws a panic.
505 GetUser(username string) (AuthUser, error)

Callers 1

LoginViaSSHMethod · 0.65

Implementers 1

authUserStoragee2e_framework_test.go

Calls

no outgoing calls

Tested by 1

LoginViaSSHMethod · 0.52