MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / OnShell

Method OnShell

internal/sshserver/handler.go:420–420  ·  view source on GitHub ↗

OnShell is called when the client requests a shell to be started. The implementation can return an error to reject the request. The implementation should send the IO handling into background. It should also respect the shutdown context on the Handler. This method MUST NOT block beyond initializing t

(
		requestID uint64,
	)

Source from the content-addressed store, hash-verified

418 // writeClose closes the stdout and stderr for writing.
419 // onExit is a callback to send the exit status back to the client.
420 OnShell(
421 requestID uint64,
422 ) error
423

Callers 4

OnShellMethod · 0.65
OnShellMethod · 0.65
TestMaxSessionsFunction · 0.65
onShellMethod · 0.65

Implementers 8

sessionChannelHandlerinternal/auditlogintegration/handler_s
backendHandlerinternal/auditlogintegration/integrati
sessionHandlerinternal/security/handler_session.go
dummyBackendinternal/security/handler_session_test
channelHandlerinternal/kubernetes/channelHandler.go
AbstractSessionChannelHandlerinternal/sshserver/AbstractSessionChan
dummySessioninternal/metricsintegration/integratio
sshChannelHandlerinternal/sshproxy/sshChannelHandler.go

Calls

no outgoing calls

Tested by 1

TestMaxSessionsFunction · 0.52