l.c.s.s.ExecOnlySession(DoNothingSession) : class documentation

Part of lp.codehosting.sshserver.session View In Hierarchy

Known subclasses: lp.codehosting.sshserver.session.RestrictedExecOnlySession

Conch session that only allows executing commands.
Method __init__ Undocumented
Class Method getAvatarAdapter Undocumented
Method closed See ISession.
Method eofReceived See ISession.
Method execCommand Executes command using protocol as the ProcessProtocol.
Method getCommandToRun Return the command that will actually be run given command.
Method _spawn Undocumented
def __init__(self, avatar, reactor, environment=None):
Undocumented
@classmethod
def getAvatarAdapter(klass, environment=None):
Undocumented
def closed(self):
See ISession.
def eofReceived(self):
See ISession.
def execCommand(self, protocol, command):
Executes `command` using `protocol` as the ProcessProtocol.

See ISession.

:param protocol: a ProcessProtocol, usually SSHSessionProcessProtocol.
:param command: A whitespace-separated command line. The first token is
used as the name of the executable, the rest are used as arguments.
def _spawn(self, protocol, executable, arguments, env):
Undocumented
def getCommandToRun(self, command):
Return the command that will actually be run given command.
ParameterscommandA command line to run.
Returns(executable, arguments) where executable is the name of an executable and arguments is a sequence of command-line arguments with the name of the executable as the first value.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.