diff options
Diffstat (limited to 'syz-cluster/pkg/api')
| -rw-r--r-- | syz-cluster/pkg/api/api.go | 1 | ||||
| -rw-r--r-- | syz-cluster/pkg/api/reporter.go | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/syz-cluster/pkg/api/api.go b/syz-cluster/pkg/api/api.go index 8b7478312..205180bbb 100644 --- a/syz-cluster/pkg/api/api.go +++ b/syz-cluster/pkg/api/api.go @@ -174,6 +174,7 @@ type Finding struct { Build BuildInfo `json:"build"` LinkCRepro string `json:"c_repro"` LinkSyzRepro string `json:"syz_repro"` + Invalidated bool `json:"invalidated"` } type BuildInfo struct { diff --git a/syz-cluster/pkg/api/reporter.go b/syz-cluster/pkg/api/reporter.go index ea83dfbe6..c01c2b4ae 100644 --- a/syz-cluster/pkg/api/reporter.go +++ b/syz-cluster/pkg/api/reporter.go @@ -45,6 +45,11 @@ func (client ReporterClient) UpstreamReport(ctx context.Context, id string, req return err } +func (client ReporterClient) InvalidateReport(ctx context.Context, id string) error { + _, err := postJSON[any, any](ctx, client.baseURL+"/reports/"+id+"/invalidate", nil) + return err +} + type RecordReplyReq struct { MessageID string `json:"message_id"` ReportID string `json:"report_id"` |
