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

rework selectors #858

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Conversation

mandelsoft
Copy link
Contributor

What this PR does / why we need it:

A new ocm sub package selectors now bundles an enhanced mechanism to select
resources, sources and references for a component descriptor as well as for a component version.
The old methods there are deprecated.

Particular sub packaged (rscsel, srcsel, refsel) provide a type specific view for common and special selector functions and the appropriate logical operators And,Or and Not.

pkg/contexts/ocm/compdesc/helper.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/compdesc/helper.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/compdesc/helper.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/cpi/dummy.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/cpi/dummy.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/cpi/repocpi/view_cv.go Show resolved Hide resolved
pkg/contexts/ocm/internal/repository.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/internal/repository.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/internal/repository.go Outdated Show resolved Hide resolved
pkg/contexts/ocm/selectors/identity.go Outdated Show resolved Hide resolved
@mandelsoft
Copy link
Contributor Author

I reverted to the original API for GetXXX methods.

@mandelsoft mandelsoft merged commit e5a6985 into open-component-model:main Jul 31, 2024
14 of 15 checks passed
@mandelsoft mandelsoft deleted the selectors branch July 31, 2024 09:32
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