Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WorkDir string // directory where files needed for the execution are stored RuntimeDir string // directory where the executable can be found ExecutableName string // name for the executable FS afero.Fs // FS accessor Limiter Limiter // Resource limiter for executed processes }
Config represents the Executor configuration.
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor provides the capabilities to run external applications.
type Option ¶
type Option func(*Config)
func WithExecutableName ¶
WithExecutableName sets the name of the executable that should be ran.
func WithLimiter ¶
WithLimiter sets the resource limiter called for each individual execution.
func WithRuntimeDir ¶
WithRuntimeDir sets the runtime directory for the executor.
func WithWorkDir ¶
WithWorkDir sets the workspace directory for the executor.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.