Skip to content
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

storage: list objects in a bucket with custom ordering #9766

Closed
guestisp opened this issue Apr 14, 2024 · 1 comment
Closed

storage: list objects in a bucket with custom ordering #9766

guestisp opened this issue Apr 14, 2024 · 1 comment
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: question Request for information or clarification. Not an issue.

Comments

@guestisp
Copy link

Hi all.
I've seen that the default (and only) sorting schema for objects in a bucket is lexicographically by name

Would be great to add a custom sorting schema, like creation date, modified date and so on.

Meanwhile, as i'm not an experienced Go programmer, do you know any sample code that does this ? I need to sort the objects by creation date.

@guestisp guestisp added the triage me I really want to be triaged. label Apr 14, 2024
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Apr 14, 2024
@tritone tritone added type: question Request for information or clarification. Not an issue. and removed triage me I really want to be triaged. labels Apr 29, 2024
@tritone
Copy link
Contributor

tritone commented Apr 29, 2024

Hi @guestisp , as far as I know these features are not supported by the GCS APIs, which the client library wraps. The full list of features for object listing is available here: https://cloud.google.com/storage/docs/json_api/v1/objects/list . I believe we expose all possible options for this API via the Go client.

If you'd like to file a FR with the Cloud Storage team for this kind of API, I'd reach out to your account manager (and they might also be helpful around how you can support your desired workload with the existing feature set of GCS).

@tritone tritone closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants