MCPcopy Index your code
hub / github.com/coder/coder / User

Method User

agent/usershell/usershell.go:31–31  ·  view source on GitHub ↗

User returns the current user.

()

Source from the content-addressed store, hash-verified

29type EnvInfoer interface {
30 // User returns the current user.
31 User() (*user.User, error)
32 // Environ returns the environment variables of the current process.
33 Environ() []string
34 // HomeDir returns the home directory of the current user.

Callers 15

TestSessionExpiryFunction · 0.65
TestUserOAuth2GithubFunction · 0.65
TestUserOIDCFunction · 0.65
TestUserLogoutFunction · 0.65
TestOIDCSkipIssuerFunction · 0.65
TestCSRFExemptFunction · 0.65
TestOAuth2ProviderRevokeFunction · 0.65

Implementers 2

SystemEnvInfoagent/usershell/usershell.go
fakeEnvInfoeragent/agentssh/agentssh_test.go

Calls

no outgoing calls

Tested by 15

TestSessionExpiryFunction · 0.52
TestUserOAuth2GithubFunction · 0.52
TestUserOIDCFunction · 0.52
TestUserLogoutFunction · 0.52
TestOIDCSkipIssuerFunction · 0.52
TestCSRFExemptFunction · 0.52
TestOAuth2ProviderRevokeFunction · 0.52