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

Function SetAgentRequested

agent.go:27–29  ·  view source on GitHub ↗

SetAgentRequested sets up the session context so that AgentRequested returns true.

(ctx Context)

Source from the content-addressed store, hash-verified

25// SetAgentRequested sets up the session context so that AgentRequested
26// returns true.
27func SetAgentRequested(ctx Context) {
28 ctx.SetValue(contextKeyAgentRequest, true)
29}
30
31// AgentRequested returns true if the client requested agent forwarding.
32func AgentRequested(sess Session) bool {

Callers 1

handleRequestsMethod · 0.85

Calls 1

SetValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…