Documentation ¶
Index ¶
- Variables
- type Action
- type Result
- type Sched
- func (s *Sched) FindExecutor(name, kind string) (executortypes.Executor, error)
- func (s *Sched) ListExecutors() []executortypes.Executor
- func (s *Sched) PrintPoolUsage()
- func (s *Sched) Return(ctx context.Context, t *Task, resp TaskResponse)
- func (s *Sched) Send(ctx context.Context, req TaskRequest) (Result, error)
- type Task
- type TaskRequest
- type TaskResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BadSpec = errors.New("invalid service spec")
)
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
const ( TaskCreate Action = iota TaskDestroy TaskStatus TaskRemove TaskUpdate TaskInspect TaskCancel TaskPrecheck TaskJobVolumeCreate TaskKillPod TaskScale TaskKedaScaledObjectCreate TaskKedaScaledObjectApply TaskKedaScaledObjectCancel TaskKedaScaledObjectReApply TaskVPAObjectApply TaskVPAObjectCancel TaskVPAObjectReApply )
type Result ¶
type Result interface {
Wait(ctx context.Context) TaskResponse
}
type Sched ¶
type Sched struct {
// contains filtered or unexported fields
}
func (*Sched) FindExecutor ¶
func (s *Sched) FindExecutor(name, kind string) (executortypes.Executor, error)
func (*Sched) ListExecutors ¶
func (s *Sched) ListExecutors() []executortypes.Executor
func (*Sched) PrintPoolUsage ¶
func (s *Sched) PrintPoolUsage()
type Task ¶
type Task struct { TaskRequest // contains filtered or unexported fields }
type TaskRequest ¶
type TaskResponse ¶
type TaskResponse struct { Extra interface{} // contains filtered or unexported fields }
func (*TaskResponse) Err ¶
func (tr *TaskResponse) Err() error
func (*TaskResponse) Status ¶
func (tr *TaskResponse) Status() apistructs.StatusDesc
Click to show internal directories.
Click to hide internal directories.