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

pkg/registry: Export errNotFound #1940

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

pkg/registry: Export errNotFound #1940

wants to merge 1 commit into from

Conversation

Eun
Copy link

@Eun Eun commented May 7, 2024

The registry logic checks for the unexported error errNotFound during blob handling.
When implementing a custom BlobHandler outside of this package the developer is unable to use the unexported errNotFound variable, therefore the custom BlobHandler cannot signal the correct error to the registry package which results in a wrong execution flow.

This PR exposes the ErrNotFound error so it can be used from outside the registry package, this aligns with other packages in this module that use the same approach e.g. cache

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.

None yet

1 participant