Documentation ¶
Index ¶
- type Master
- func (m *Master) AddTask(req *pb.Task) (*pb.Worker, error)
- func (m *Master) DeleteTask(uuid string) error
- func (m *Master) GetTask(uuid string, loadStatus bool) (*pb.Task, error)
- func (m *Master) GetWorker(id string) (*pb.Worker, error)
- func (m *Master) ListTasks(id string, loadStatus bool) ([]*pb.Task, error)
- func (m *Master) ListWorkers() ([]*pb.Worker, error)
- func (m *Master) Run()
- func (m *Master) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master provides a task scheduler with HA and auto reconcile support.
func NewMaster ¶
func NewMaster(cfg *conf.ClusterCfg, id string) (*Master, error)
NewMaster creates a new master instance.
func (*Master) DeleteTask ¶
DeleteTask deletes a specific task.
func (*Master) ListWorkers ¶
ListWorkers lists all workers.
Click to show internal directories.
Click to hide internal directories.