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

liquid: import various algorithms and utils from package limes #196

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

majewsky
Copy link
Contributor

@majewsky majewsky commented Jan 3, 2025

To make these utility functions available to external LIQUID implementors, such as liquid-ceph.

  • limes/internal/util/algorithms.go -> liquidapi/algorithms.go without any changes
  • limes/internal/util/algorithms_test.go -> liquidapi/algorithms_test.go with one small change (type db.ProjectServiceID is replaced by a local type)
  • limes/internal/liquids/utils.go -> liquidapi/utils.go and gophercloudext/utils.go except for func PointerTo (which I hope to eliminate in Go 1.24)

To make these utility functions available to external LIQUID
implementors, such as liquid-ceph.

- `limes/internal/util/algorithms.go` -> `liquidapi/algorithms.go`
  without any changes
- `limes/internal/util/algorithms_test.go` -> `liquidapi/algorithms_test.go`
  with minimal changes (type `db.ProjectServiceID` is replaced by a local type)
- `limes/internal/liquids/utils.go` -> `liquidapi/utils.go` and `gophercloudext/utils.go`
  except for func PointerTo (which I hope to eliminate in Go 1.24)
@coveralls
Copy link

coveralls commented Jan 3, 2025

Coverage Status

coverage: 29.489% (-2.6%) from 32.096%
when pulling 13f485a on liquidapi-utils
into 94e7d6a on master.

@majewsky majewsky merged commit 5bc9c24 into master Jan 8, 2025
6 checks passed
@majewsky majewsky deleted the liquidapi-utils branch January 8, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants