16 lines
316 B
Go
16 lines
316 B
Go
package executor
|
|
|
|
import (
|
|
"context"
|
|
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option"
|
|
)
|
|
|
|
const (
|
|
SUBMIT_MODE_JOINT_CLOUD = iota + 1
|
|
SUBMIT_MODE_STORAGE_SCHEDULE
|
|
)
|
|
|
|
type AiExecutor interface {
|
|
Execute(ctx context.Context, option *option.AiOption, mode int) (interface{}, error)
|
|
}
|