Shellbox
Library and server for containerized shell execution
Loading...
Searching...
No Matches
Shellbox\Command\RemoteBoxedExecutor Class Reference

A BoxedExecutor which works by running the command on a remote server via HTTP/HTTPS. More...

+ Inheritance diagram for Shellbox\Command\RemoteBoxedExecutor:

Public Member Functions

 __construct (Client $client)
 
 setLogger (LoggerInterface $logger)
 Set the logger.
 
 executeValid (BoxedCommand $command)
 Execute a BoxedCommand that has already been validated.
 
 areUrlFilesAllowed ()
 Whether the executor can download input files and upload output files specified with BoxedCommand::inputFileFromUrl and the like.
 
- Public Member Functions inherited from Shellbox\Command\BoxedExecutor
 execute (BoxedCommand $command)
 Execute a boxed command.
 
 createCommand ()
 Create an empty command linked to this executor.
 
 setValidationConfig ( $config)
 Set validation configuration.
 

Additional Inherited Members

- Protected Member Functions inherited from Shellbox\Command\BoxedExecutor
 assertIsValid (BoxedCommand $command)
 Validate the command.
 
- Protected Attributes inherited from Shellbox\Command\BoxedExecutor
 $validator
 

Detailed Description

A BoxedExecutor which works by running the command on a remote server via HTTP/HTTPS.

Constructor & Destructor Documentation

◆ __construct()

Shellbox\Command\RemoteBoxedExecutor::__construct ( Client $client)
Parameters
Client$client

Member Function Documentation

◆ areUrlFilesAllowed()

Shellbox\Command\RemoteBoxedExecutor::areUrlFilesAllowed ( )

Whether the executor can download input files and upload output files specified with BoxedCommand::inputFileFromUrl and the like.

Since
4.1.0
Returns
bool

Reimplemented from Shellbox\Command\BoxedExecutor.

◆ executeValid()

Shellbox\Command\RemoteBoxedExecutor::executeValid ( BoxedCommand $command)

Execute a BoxedCommand that has already been validated.

Parameters
BoxedCommand$command
Returns
BoxedResult

Reimplemented from Shellbox\Command\BoxedExecutor.

◆ setLogger()

Shellbox\Command\RemoteBoxedExecutor::setLogger ( LoggerInterface $logger)

Set the logger.

Parameters
LoggerInterface$logger

The documentation for this class was generated from the following file: