Class CommandExecutor
java.lang.Object
io.agentscope.extensions.sandbox.kubernetes.client.CommandExecutor
Executes commands inside a sandbox via
POST /execute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRuns a command with the default timeout of 60 seconds.Runs a command with the given timeout.
-
Constructor Details
-
CommandExecutor
-
-
Method Details
-
run
Runs a command with the default timeout of 60 seconds.- Parameters:
command- shell command- Returns:
- execution result
-
run
Runs a command with the given timeout.- Parameters:
command- shell commandtimeout- request timeout (currently used as retry budget hint)- Returns:
- execution result
-