aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi/dashapi.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-10-07 17:50:24 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-08 12:39:23 +0200
commit64612bfd3c83d7246467cd9731f01a36b6331598 (patch)
tree56148e8f911b279e3101bc7ea50c1b3f16c27639 /dashboard/dashapi/dashapi.go
parent0f33548a39d8debf54b8552a250a275176595cda (diff)
tools/syz-reprolist: add utility to extract list of reproducers
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
-rw-r--r--dashboard/dashapi/dashapi.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go
index bb5771bbe..4b2060463 100644
--- a/dashboard/dashapi/dashapi.go
+++ b/dashboard/dashapi/dashapi.go
@@ -460,6 +460,38 @@ func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error {
return dash.Query("manager_stats", req, nil)
}
+type BugListResp struct {
+ List []string
+}
+
+func (dash *Dashboard) BugList() (*BugListResp, error) {
+ resp := new(BugListResp)
+ err := dash.Query("bug_list", nil, resp)
+ return resp, err
+}
+
+type LoadBugReq struct {
+ ID string
+}
+
+type LoadBugResp struct {
+ ID string
+ Title string
+ Status string
+ SyzkallerCommit string
+ Arch string
+ ReproOpts []byte
+ ReproSyz []byte
+ ReproC []byte
+}
+
+func (dash *Dashboard) LoadBug(id string) (*LoadBugResp, error) {
+ req := LoadBugReq{id}
+ resp := new(LoadBugResp)
+ err := dash.Query("load_bug", req, resp)
+ return resp, err
+}
+
type (
BugStatus int
BugNotif int