MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / OnSubsystem

Method OnSubsystem

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

OnSubsystem is called when the client calls a well-known Subsystem (e.g. sftp). 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

(
		requestID uint64,
		subsystem string,
	)

Source from the content-addressed store, hash-verified

429 // requestID is an incrementing number uniquely identifying this request within the channel.
430 // subsystem is the name of the subsystem to be launched (e.g. sftp)
431 OnSubsystem(
432 requestID uint64,
433 subsystem string,
434 ) error

Callers 3

OnSubsystemMethod · 0.65
OnSubsystemMethod · 0.65
onSubsystemMethod · 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

no test coverage detected