Documentation ¶
Index ¶
- type ExecutionConfig
- type Executor
- func (r *Executor) Execute(files []models.ExecutionFile, c *ExecutionConfig) (*models.ExecutionResponse, error)
- func (r *Executor) IsExecutorAvailable(rt *manifest.ManifestRuntime) bool
- func (r *Executor) Prepare(containerId string, files []models.ExecutionFile) (executionId string, err error)
- func (r *Executor) Setup(ctn di.Container)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionConfig ¶
type ExecutionConfig struct { // Task Exeuction Id ExecutionId string // Entrypoint specified by request EntryPoint string // Language runtime for task Runtime *manifest.ManifestRuntime }
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func (*Executor) Execute ¶
func (r *Executor) Execute(files []models.ExecutionFile, c *ExecutionConfig) (*models.ExecutionResponse, error)
Execute execute code
func (*Executor) IsExecutorAvailable ¶
func (r *Executor) IsExecutorAvailable(rt *manifest.ManifestRuntime) bool
IsExecutorAvailable checks if there is an available executor/container to use
Click to show internal directories.
Click to hide internal directories.