syft/internal
Alex Goodman b0ab75fd89
Replace core SBOM-creation API with builder pattern (#1383)
* remove existing cataloging API

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add file cataloging config

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add package cataloging config

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add configs for cross-cutting concerns

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* rename CLI option configs to not require import aliases later

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update all nested structs for the Catalog struct

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update Catalog cli options

- add new cataloger selection options (selection and default)
- remove the excludeBinaryOverlapByOwnership
- deprecate "catalogers" flag
- add new javascript configuration

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* migrate relationship capabilities to separate internal package

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* refactor golang cataloger to use configuration options when creating packages

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* create internal object to facilitate reading from and writing to an SBOM

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* create a command-like object (task) to facilitate partial SBOM creation

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add cataloger selection capability

- be able to parse string expressions into a set of resolved actions against sets
- be able to use expressions to select/add/remove tasks to/from the final set of tasks to run

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add package, file, and environment related tasks

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update existing file catalogers to use nested UI elements

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add CreateSBOMConfig that drives the SBOM creation process

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* capture SBOM creation info as a struct

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add CreateSBOM() function

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix tests

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* update docs with SBOM selection help + breaking changes

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix multiple override default inputs

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix deprecation flag printing to stdout

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* refactor cataloger selection description to separate object

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* address review comments

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* keep expression errors and show specific suggestions only

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* address additional review feedback

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* address more review comments

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* addressed additional PR review feedback

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* fix file selection references

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* remove guess language data generation option

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add tests for coordinatesForSelection

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* rename relationship attributes

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add descriptions to relationships config fields

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* improve documentation around configuration options

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* add explicit errors around legacy config entries

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2024-01-12 17:39:13 -05:00
..
bus Generalize UI events for cataloging tasks (#2369) 2023-11-30 16:25:50 +00:00
file feat: Perform case insensitive matching on Java license files (#2235) 2023-10-25 09:51:59 -04:00
licenses feat: Perform case insensitive matching on Java license files (#2235) 2023-10-25 09:51:59 -04:00
log chore: update CLI to CLIO (#2001) 2023-08-29 15:52:26 -04:00
redact chore: update CLI to CLIO (#2001) 2023-08-29 15:52:26 -04:00
relationship Replace core SBOM-creation API with builder pattern (#1383) 2024-01-12 17:39:13 -05:00
sbomsync Replace core SBOM-creation API with builder pattern (#1383) 2024-01-12 17:39:13 -05:00
spdxlicense chore: update license list to 3.22 (#2201) 2023-10-06 10:56:47 -04:00
task Replace core SBOM-creation API with builder pattern (#1383) 2024-01-12 17:39:13 -05:00
buffered_seek_reader.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
buffered_seek_reader_test.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
constants.go Remove the power-user command and related catalogers (#2306) 2023-11-20 15:44:28 +00:00
docs.go improve doc comments 2020-11-17 12:37:13 -05:00
err_helper.go chore: clean up linting configuration (#1343) 2022-11-16 16:28:09 +00:00
input.go 510 - SBOM attestation stdout (#785) 2022-02-22 21:45:12 -05:00
mimetype_helper.go feat: add nodejs-binary package classifier (#1296) 2022-10-31 16:45:11 +00:00
mimetype_helper_test.go Migrate SPDX-JSON relationships to SBOM model (#634) 2021-11-23 14:54:17 -05:00
regex_helpers.go simplify MatchNamedCaptureGroups implementation 2021-04-12 17:11:43 -04:00
regex_helpers_test.go add tests around MatchNamedCaptureGroups + rename 2021-04-12 17:08:50 -04:00
string_helpers.go Speed up cataloging by replacing globs searching with index lookups (#1510) 2023-02-09 16:19:47 +00:00
string_helpers_test.go Speed up cataloging by replacing globs searching with index lookups (#1510) 2023-02-09 16:19:47 +00:00
stringset.go feat: update syft license concept to complex struct (#1743) 2023-05-15 16:23:39 -04:00
tprint.go add analysis coordination (with dummy analyzer) 2020-05-18 11:59:33 -04:00