-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: export no match / multiple match errors
`OCIFileImage.Image` or `OCIFileImage.Index` can fail due to no descriptors, or multiple descriptors, being selected by the provided matcher. The functions return a single image or index only. These no match / multiple match error cases may require specific action in the caller. For example, when looking for an artifact associated with a container image, which may or may not be present. Export `ErrNoMatch` and `ErrMultipleMatches`, and use these two errors across the Image and Index functions. Fixes #94
- Loading branch information
Showing
2 changed files
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters