https://authzed.com logo
Title
d

dguhr-rh

01/25/2023, 3:32 PM
Hey 👋 question about the API client usage in go - we have the following call to
LookupResources
here: https://github.com/RedHatInsights/authz-experiments/blob/main/engine_eval/zanzibar/authzed/attributefilterdemo/src/main.go#L71-L90 we're trying to get those resources and put them into a slice. The only way we found so-far is in line 81-90 but this looks a bit strange. Is there another, more idiomatic way? If not, can you tell us more about the reason this is how it is?
see model.yaml for the model to evaluate here 🙂
j

Joey

01/25/2023, 3:35 PM
d

dguhr-rh

01/25/2023, 3:45 PM
thanks, changed the error handling.
w

wscalf

01/25/2023, 3:46 PM
Out of curiosity- is this meant to abstract out the results streaming/paging?
j

Joey

01/25/2023, 3:51 PM
we don't support paging
LookupResources and LookupSubjects are streaming, yes
w

wscalf

01/25/2023, 5:17 PM
Makes sense - thanks!
j

Joey

01/25/2023, 5:21 PM
long term, the goal for LR is to have a cache