-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate SourceInformation.DocumentRef in collectors (#1847)
* Add store-blob-url CLI flag to all collectors Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Import package only once in file - This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Make use of setBlobURL flag in all collectors Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Remove impossible conditional clause - This clears up a nilness analyzer warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Import package only once in file - This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Tweak error message to not end with punctuation - This clears up up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Add test for collector storeBlobURL flags - TODO: GitHub Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix typo in filename Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Add some TODOs to the GitHub collector test. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Rename flag more appropriately Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Always set DocumentRef to blob key - Since we now have the DocumentRef field, there is no reason to gate its usage, and this simplifies the CLI command code. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix broken tests (minor) - I forgot to include the DocumentRef values in my want docs. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Minor refactor - Since we no longer branch based on whether or not we want to store blob keys (we always do it), the getDocRef() methods have become funcs instead. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix S3 collected doc Source field Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix SourceInformation assertion Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Create helper wrapper func to aid readability - This allows me to stop repeating a call with a comment explaining it multiple time throughout the collector code. It's very minor change. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> --------- Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- Loading branch information
Showing
28 changed files
with
219 additions
and
124 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
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
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
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
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
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
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
Oops, something went wrong.