Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for OCI referrers (#1278)
* refactor fetch blob logic Signed-off-by: Ridwan Hoq <[email protected]> * add simple referrer artifact support for spdx Signed-off-by: Ridwan Hoq <[email protected]> * comment Signed-off-by: Ridwan Hoq <[email protected]> * fmt.Errorf Signed-off-by: Ridwan Hoq <[email protected]> * exit collector logic after citerating thru the platform list Signed-off-by: Ridwan Hoq <[email protected]> * add well known media types Signed-off-by: Ridwan Hoq <[email protected]> * add failing test Signed-off-by: Ridwan Hoq <[email protected]> * close blob and uncomment SPDX to well known artifacts Signed-off-by: Ridwan Hoq <[email protected]> * fixx bug where manifest list wasn't being checked for fallback/referrers Signed-off-by: Ridwan Hoq <[email protected]> * added tests for OCI referrer artifacts Signed-off-by: Ridwan Hoq <[email protected]> * refactor test so that document order doesn't matter Signed-off-by: Ridwan Hoq <[email protected]> * check if referrer digest was already collected Signed-off-by: Ridwan Hoq <[email protected]> * fmt.Errorf Signed-off-by: Ridwan Hoq <[email protected]> * remove unnecessary referrer opts Signed-off-by: Ridwan Hoq <[email protected]> * fix test assertion Signed-off-by: Ridwan Hoq <[email protected]> * handle manifest list and referrers concurrently Signed-off-by: Ridwan Hoq <[email protected]> * refactor to use sync.Map for checkedDigests Signed-off-by: Ridwan Hoq <[email protected]> * well known suffixes Signed-off-by: Ridwan Hoq <[email protected]> * PR feedback Signed-off-by: Ridwan Hoq <[email protected]> * refactor fetchOCIArtifacts into more readable chunks and add doc comments Signed-off-by: Ridwan Hoq <[email protected]> * close layer instead of defer Signed-off-by: Ridwan Hoq <[email protected]> * check manifest list error Signed-off-by: Ridwan Hoq <[email protected]> * return after error Signed-off-by: Ridwan Hoq <[email protected]> * use slices.Contains Signed-off-by: Ridwan Hoq <[email protected]> * cancel other goroutines on error Signed-off-by: Ridwan Hoq <[email protected]> * fix tests due to new spdx docs were attached Signed-off-by: Ridwan Hoq <[email protected]> * check platform digests to see if previously collected Signed-off-by: Ridwan Hoq <[email protected]> --------- Signed-off-by: Ridwan Hoq <[email protected]>
- Loading branch information