diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2026-02-16 08:48:25 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2026-03-04 18:19:12 +0000 |
| commit | 5675edac8a8dd3f3041df8d9ec79f95a42d434fa (patch) | |
| tree | eab8686c35dce571b119ddd3468ffc731688ec07 /syz-cluster/pkg/api | |
| parent | 12c7ee42182673f63622aadb91d5da1f2eedb8f1 (diff) | |
syz-cluster: add ListPreviousFindings API
The API call returns an aggregated list of findings in all previous
versions of the specified patch series.
Diffstat (limited to 'syz-cluster/pkg/api')
| -rw-r--r-- | syz-cluster/pkg/api/client.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/syz-cluster/pkg/api/client.go b/syz-cluster/pkg/api/client.go index 83d4ebcaa..d7b1d37ea 100644 --- a/syz-cluster/pkg/api/client.go +++ b/syz-cluster/pkg/api/client.go @@ -132,6 +132,20 @@ func (client Client) BaseFindingStatus(ctx context.Context, req *BaseFindingInfo return postJSON[BaseFindingInfo, BaseFindingStatus](ctx, client.baseURL+"/base_findings/status", req) } +type ListPreviousFindingsReq struct { + SeriesID string `json:"series_id"` + Arch string `json:"arch"` + Config string `json:"config"` +} + +func (client Client) ListPreviousFindings(ctx context.Context, req *ListPreviousFindingsReq) ([]string, error) { + res, err := postJSON[ListPreviousFindingsReq, []string](ctx, client.baseURL+"/findings/previous", req) + if err != nil { + return nil, err + } + return *res, nil +} + func (client Client) GetFinding(ctx context.Context, id string) (*RawFinding, error) { return getJSON[RawFinding](ctx, client.baseURL+"/findings/"+id) } |
