Documentation ¶
Index ¶
- Constants
- func WriteBusinessError(c echo.Context, message string) error
- func WriteErrorWithCode(c echo.Context, code int32, message string) error
- func WriteOK(c echo.Context, data interface{}) error
- func WriteParamError(c echo.Context, message string) error
- type PinkWebHandler
- func (h *PinkWebHandler) AddGroup(c echo.Context) error
- func (h *PinkWebHandler) AddJobConf(c echo.Context) error
- func (h *PinkWebHandler) DeleteJobConf(c echo.Context) error
- func (h *PinkWebHandler) ExecuteHistorySnapshotDelete(c echo.Context) error
- func (h *PinkWebHandler) ExecuteHistorySnapshots(c echo.Context) error
- func (h *PinkWebHandler) ExecuteSnapshots(c echo.Context) error
- func (h *PinkWebHandler) GroupDetailsList(c echo.Context) error
- func (h *PinkWebHandler) GroupList(c echo.Context) error
- func (h *PinkWebHandler) JobConfList(c echo.Context) error
- func (h *PinkWebHandler) JobExecute(c echo.Context) error
- func (h *PinkWebHandler) NodeList(c echo.Context) error
- func (h *PinkWebHandler) SchedulePlanClients(c echo.Context) error
- func (h *PinkWebHandler) SchedulePlanList(c echo.Context) error
- func (h *PinkWebHandler) ScheduleSnapshotDelete(c echo.Context) error
- func (h *PinkWebHandler) ScheduleSnapshots(c echo.Context) error
- func (h *PinkWebHandler) UpdateJobConf(c echo.Context) error
Constants ¶
View Source
const ( OK = 0 BusinessErrorCode = 100000 ParamErrorCode = 100001 )
Variables ¶
This section is empty.
Functions ¶
func WriteBusinessError ¶
func WriteErrorWithCode ¶
func WriteParamError ¶
Types ¶
type PinkWebHandler ¶
type PinkWebHandler struct {
// contains filtered or unexported fields
}
PinkWebHandler web api
func NewPinkWebHandler ¶
func NewPinkWebHandler(etcdCli *etcd.Cli, scheduler *schedule.PinkScheduler, executeSnapshotHisRepository *repository.ExecuteSnapshotHisRepository) *PinkWebHandler
func (*PinkWebHandler) AddGroup ¶
func (h *PinkWebHandler) AddGroup(c echo.Context) error
func (*PinkWebHandler) AddJobConf ¶
func (h *PinkWebHandler) AddJobConf(c echo.Context) error
add job conf
func (*PinkWebHandler) DeleteJobConf ¶
func (h *PinkWebHandler) DeleteJobConf(c echo.Context) error
delete a job conf
func (*PinkWebHandler) ExecuteHistorySnapshotDelete ¶
func (h *PinkWebHandler) ExecuteHistorySnapshotDelete(c echo.Context) error
delete execute history snapshot
func (*PinkWebHandler) ExecuteHistorySnapshots ¶
func (h *PinkWebHandler) ExecuteHistorySnapshots(c echo.Context) error
*
- execute history snapshot
func (*PinkWebHandler) ExecuteSnapshots ¶
func (h *PinkWebHandler) ExecuteSnapshots(c echo.Context) error
execute snapshot
func (*PinkWebHandler) GroupDetailsList ¶
func (h *PinkWebHandler) GroupDetailsList(c echo.Context) error
query group details list
func (*PinkWebHandler) GroupList ¶
func (h *PinkWebHandler) GroupList(c echo.Context) error
query group list
func (*PinkWebHandler) JobConfList ¶
func (h *PinkWebHandler) JobConfList(c echo.Context) error
query job conf list
func (*PinkWebHandler) JobExecute ¶
func (h *PinkWebHandler) JobExecute(c echo.Context) error
execute job
func (*PinkWebHandler) SchedulePlanClients ¶
func (h *PinkWebHandler) SchedulePlanClients(c echo.Context) error
schedule clients
func (*PinkWebHandler) SchedulePlanList ¶
func (h *PinkWebHandler) SchedulePlanList(c echo.Context) error
schedule plan list
func (*PinkWebHandler) ScheduleSnapshotDelete ¶
func (h *PinkWebHandler) ScheduleSnapshotDelete(c echo.Context) error
delete the schedule snapshot
func (*PinkWebHandler) ScheduleSnapshots ¶
func (h *PinkWebHandler) ScheduleSnapshots(c echo.Context) error
schedule snapshots
func (*PinkWebHandler) UpdateJobConf ¶
func (h *PinkWebHandler) UpdateJobConf(c echo.Context) error
job conf update
Click to show internal directories.
Click to hide internal directories.