Skip to content

Add support for programmatically listing catalogers#5046

Open
adityasaky wants to merge 1 commit into
anchore:mainfrom
adityasaky:api-expose-catalogers
Open

Add support for programmatically listing catalogers#5046
adityasaky wants to merge 1 commit into
anchore:mainfrom
adityasaky:api-expose-catalogers

Conversation

@adityasaky

@adityasaky adityasaky commented Jul 8, 2026

Copy link
Copy Markdown

Description

This change adds a public interface to list all configured catalogers. This is a first pass at implementing #4992 and as of now does not handle the pieces about cataloger info and config-based hydration.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation (updates the documentation)

Checklist

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Issue references

Fixes #4992

Signed-off-by: Aditya Sirish A Yelgundhalli <ayelgundhall@bloomberg.net>
Comment thread syft/exp/cataloger.go
Comment on lines +22 to +26
func AllCatalogers(additional ...pkgcataloging.CatalogerReference) ([]Cataloger, error) {
return SelectCatalogers(cataloging.SelectionRequest{
DefaultNamesOrTags: []string{"all"},
}, additional...)
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm currently using this approach to provide any user defined catalogers that are configured via CreateSBOMConfig.WithCatalogers(). I'm not sure this is the best way to go about this though.

@adityasaky adityasaky changed the title syft/exp: Add support for programmatically listing catalogers Add support for programmatically listing catalogers Jul 8, 2026
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.

Expose an interface to list catalogers

1 participant