-
Notifications
You must be signed in to change notification settings - Fork 26
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 image lookup #281
base: main
Are you sure you want to change the base?
Add image lookup #281
Conversation
unit test
|
if len(response.Items) == 0 { | ||
return nil, errors.New(fmt.Sprintf("could not lookup image from lookup parameters")) | ||
} | ||
imageId = *response.Items[0].Id |
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.
add a quick todo maybe for "pagination"?
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.
we have limit in the request to one as we really need the latest one, hence we sort by time created. I hope this makes sense.
What this PR does / why we need it:
Add ability to lookup images.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #280