• Home
  • Raw
  • Download

Lines Matching refs:dash

79 func (dash *Dashboard) UploadBuild(build *Build) error {
80 return dash.Query("upload_build", build, nil)
100 func (dash *Dashboard) BuilderPoll(manager string) (*BuilderPollResp, error) {
105 err := dash.Query("builder_poll", req, resp)
144 func (dash *Dashboard) JobPoll(managers []string) (*JobPollResp, error) {
147 err := dash.Query("job_poll", req, resp)
151 func (dash *Dashboard) JobDone(req *JobDoneReq) error {
152 return dash.Query("job_done", req, nil)
160 func (dash *Dashboard) ReportBuildError(req *BuildErrorReq) error {
161 return dash.Query("report_build_error", req, nil)
182 func (dash *Dashboard) ReportCrash(crash *Crash) (*ReportCrashResp, error) {
184 err := dash.Query("report_crash", crash, resp)
200 func (dash *Dashboard) NeedRepro(crash *CrashID) (bool, error) {
202 err := dash.Query("need_repro", crash, resp)
207 func (dash *Dashboard) ReportFailedRepro(crash *CrashID) error {
208 return dash.Query("report_failed_repro", crash, nil)
217 func (dash *Dashboard) LogError(name, msg string, args ...interface{}) {
222 dash.Query("log_error", req, nil)
305 func (dash *Dashboard) ReportingPollBugs(typ string) (*PollBugsResponse, error) {
310 if err := dash.Query("reporting_poll_bugs", req, resp); err != nil {
316 func (dash *Dashboard) ReportingPollClosed(ids []string) ([]string, error) {
321 if err := dash.Query("reporting_poll_closed", req, resp); err != nil {
327 func (dash *Dashboard) ReportingUpdate(upd *BugUpdate) (*BugUpdateReply, error) {
329 if err := dash.Query("reporting_update", upd, resp); err != nil {
350 func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error {
351 return dash.Query("manager_stats", req, nil)
373 func (dash *Dashboard) Query(method string, req, reply interface{}) error {
374 if dash.logger != nil {
375 dash.logger("API(%v): %#v", method, req)
377 err := dash.queryImpl(method, req, reply)
379 if dash.logger != nil {
380 dash.logger("API(%v): ERROR: %v", method, err)
382 if dash.errorHandler != nil {
383 dash.errorHandler(err)
387 if dash.logger != nil {
388 dash.logger("API(%v): REPLY: %#v", method, reply)
393 func (dash *Dashboard) queryImpl(method string, req, reply interface{}) error {
405 values.Add("client", dash.Client)
406 values.Add("key", dash.Key)
423 r, err := dash.ctor("POST", fmt.Sprintf("%v/api", dash.Addr), strings.NewReader(values.Encode()))
428 resp, err := dash.doer(r)