syft/internal
Alex Goodman 4da3be864f
Refactor source API (#1846)
* refactor source API and syft json source block

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update source detection and format test utils

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* generate list of all source metadata types

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

* extract base and root normalization into helper functions

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

* preserve syftjson model package name import ref

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

* alias should not be a pointer

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

---------

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2023-06-30 14:19:16 +00:00
..
bus Add documentation around catalogers, UI elements, and the event bus (#143) 2020-08-12 11:04:39 -04:00
config feat: source-version flag (#1859) 2023-06-05 10:36:34 -04:00
file Pr 1825 (#1865) 2023-06-05 17:01:00 +00:00
licenses Migrate location-related structs to the file package (#1751) 2023-05-24 17:06:38 -04:00
log replace logger interface with anchore/go-logger (#1279) 2022-10-21 15:12:14 +00:00
spdxlicense chore: update SPDX license list to 3.21 (#1885) 2023-06-20 15:47:02 +00:00
ui Add NetBSD support. (#1412) 2022-12-19 16:59:50 -05:00
version Bug fix for 1095 - syft conversion option error (#1177) 2022-08-25 17:36:15 -04:00
constants.go Refactor source API (#1846) 2023-06-30 14:19:16 +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