3 // 'env' score interface
8 envEnvironmentPrefix = "ORC_"
12 RegisterInterface("env", newEnvInterface)
15 type EnvInterface struct {
19 func newEnvInterface(task *TaskRequest) (iface ScoreInterface) {
20 ei := new(EnvInterface)
26 func (ei *EnvInterface) Prepare() bool {
31 func (ei *EnvInterface) SetupProcess() (ee *ExecutionEnvironment) {
32 ee = NewExecutionEnvironment()
33 for k,v := range ei.task.Params {
34 ee.Environment[envEnvironmentPrefix+k] = v
40 func (ei *EnvInterface) Cleanup() {