1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-28 03:10:32 +00:00
steve/pkg/stores
Eric Promislow 57ce685118
Sort-indirect PR broken into smaller parts: part 3/6 - pass listOptions by reference (#612)
* Move types related to list options and sql queries into their own package.

The problem having these in the informer package is that eventually code
in other packages will need to import `informer` only for constants or types,
but some members of the informer package may already depend on those. Best to
move type definitions into their own simpler package.

* Fix the ListOptions sort field.

Instead of making it a single array-ish field, convert it into a
true array of Sort Directives.  Easier to read, less bending backwards.

* Pass the listOptions struct by reference to avoid copying.

We never update the ListOptions struct once it's created so there's
no need to pass it by value.

This might be a near-useless optimization...
2025-04-25 11:19:34 -07:00
..
metrics Adding validate phase to the CI 2022-10-14 15:21:17 -05:00
partition SQLite backed cache: Support sorting mgmt clusters on value in a specific condition (#447) 2025-01-27 11:55:09 -08:00
proxy Index arbitrary labels (#317) 2025-01-30 11:57:23 -08:00
queryhelper SQLite backed cache: Support sorting mgmt clusters on value in a specific condition (#447) 2025-01-27 11:55:09 -08:00
selector Shuffle around code and use rancher/apiserver 2020-06-11 21:51:19 -07:00
sqlpartition Sort-indirect PR broken into smaller parts: part 3/6 - pass listOptions by reference (#612) 2025-04-25 11:19:34 -07:00
sqlproxy Sort-indirect PR broken into smaller parts: part 3/6 - pass listOptions by reference (#612) 2025-04-25 11:19:34 -07:00
switchschema Shuffle around code and use rancher/apiserver 2020-06-11 21:51:19 -07:00