MCPcopy Index your code
hub / github.com/gliderlabs/ssh / SetValue

Method SetValue

context.go:134–138  ·  view source on GitHub ↗
(key, value interface{})

Source from the content-addressed store, hash-verified

132}
133
134func (ctx *sshContext) SetValue(key, value interface{}) {
135 ctx.valuesMu.Lock()
136 defer ctx.valuesMu.Unlock()
137 ctx.values[key] = value
138}
139
140func (ctx *sshContext) User() string {
141 return ctx.Value(ContextKeyUser).(string)

Callers 1

newContextFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected