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

separate package blobaccess #541

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

mandelsoft
Copy link
Contributor

@mandelsoft mandelsoft commented Oct 14, 2023

Description

This PR moves all flavors of implementations of interface BlobAccess to the package
blobaccess and deprecates the old locations.
All usages in the lib are adjusted to not access the deprecated types and functions, anymore.

This is the first step to a clearer interface towards a uniform composition API for component versions.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

  • Related Issue # (issue)
  • Closes # (issue)
  • Fixes # (issue)

Remove if not applicable

Screenshots

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🙅 no documentation needed

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@morri-son morri-son requested a review from fabianburth October 16, 2023 10:10
@morri-son morri-son changed the title separate package bobaccess separate package blobaccess Oct 16, 2023
fabianburth
fabianburth previously approved these changes Oct 18, 2023
"github.com/open-component-model/ocm/pkg/errors"
"github.com/open-component-model/ocm/pkg/mime"
"github.com/open-component-model/ocm/pkg/utils"
"github.com/open-component-model/ocm/pkg/utils/tarutils"
)

func DataAccessForDirTree(path string, opts ...Option) (accessio.DataAccess, error) {
func DataAccessForDirTree(path string, opts ...Option) (spi.DataAccess, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename this to bpi (for blob programming interface). That might be slightly more intuitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good ides, this would be consistent with the used naming scheme in the lib.

I'll do this when moving the package to the top level pkg folder

@mandelsoft
Copy link
Contributor Author

I had to rebase

@mandelsoft mandelsoft merged commit 0340a0b into open-component-model:main Oct 19, 2023
10 checks passed
@mandelsoft mandelsoft deleted the transfer branch October 19, 2023 19:06
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.

2 participants