From 64612bfd3c83d7246467cd9731f01a36b6331598 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 7 Oct 2019 17:50:24 +0200 Subject: tools/syz-reprolist: add utility to extract list of reproducers --- dashboard/dashapi/dashapi.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'dashboard/dashapi/dashapi.go') 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 -- cgit mrf-deployment