MCPcopy
hub / github.com/gliderlabs/ssh / Value

Method Value

context.go:125–132  ·  view source on GitHub ↗
(key interface{})

Source from the content-addressed store, hash-verified

123}
124
125func (ctx *sshContext) Value(key interface{}) interface{} {
126 ctx.valuesMu.Lock()
127 defer ctx.valuesMu.Unlock()
128 if v, ok := ctx.values[key]; ok {
129 return v
130 }
131 return ctx.Context.Value(key)
132}
133
134func (ctx *sshContext) SetValue(key, value interface{}) {
135 ctx.valuesMu.Lock()

Callers 15

UserMethod · 0.95
SessionIDMethod · 0.95
ClientVersionMethod · 0.95
ServerVersionMethod · 0.95
RemoteAddrMethod · 0.95
LocalAddrMethod · 0.95
PermissionsMethod · 0.95
HandleSSHRequestMethod · 0.80
TestSetValueFunction · 0.80
TestSetValueConcurrencyFunction · 0.80
PublicKeyMethod · 0.80
PermissionsMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestSetValueFunction · 0.64
TestSetValueConcurrencyFunction · 0.64