-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CheckService to plugin.v1beta1 #136
Conversation
The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix docs re resources
|
||
// Operate on Check plugins. | ||
service CheckService { | ||
// List rules for a given plugin commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs are off
rpc ListRules(ListRulesRequest) returns (ListRulesResponse) { | ||
option idempotency_level = NO_SIDE_EFFECTS; | ||
} | ||
// List categories for a given plugin commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
This PR adds a
CheckService
that takes aResourceRef
to allow API callers to fetch rules/categories for a plugin (latest commit on default label), label (latest commit) or commit.For a moment, I thought just maybe we could ask callers to download the wasm blob and invoke it instead, but I suspect we're not there yet. We need some way to get the rules/categories cheaply.