MCPcopy Create free account
hub / github.com/belak/gitdir / CtxSetUser

Function CtxSetUser

context.go:50–52  ·  view source on GitHub ↗

CtxSetUser puts the given User into the ssh.Context.

(parent ssh.Context, user *User)

Source from the content-addressed store, hash-verified

48
49// CtxSetUser puts the given User into the ssh.Context.
50func CtxSetUser(parent ssh.Context, user *User) {
51 parent.SetValue(contextKeyUser, user)
52}
53
54// CtxUser pulls the current User out of the context, or AnonymousUser if not
55// set.

Callers 1

handlePublicKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected