-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(scanner): add keppel scanner #151
Conversation
scanner/keppel/main.go
Outdated
wg.Wait() | ||
} | ||
|
||
func ProcessAccount(account models.Account, keppelScanner *scanner.Scanner, keppelProcessor *processor.Processor, wg *sync.WaitGroup) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might consider refactoring this function into smaller ones (processRepositories, processManifests etc.) as it's already huge with lots of for-loops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "ProcessAccount" Method is irritating me as we use the "processor", "scanner" semantic for distinguishing the two parts of the scanner and here "Process" is used for the central logic part
scanner/keppel/main.go
Outdated
log.SetOutput(os.Stdout) | ||
|
||
// Only log the warning severity or above. | ||
log.SetLevel(log.DebugLevel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not from ENV?
@@ -1,3 +1,35 @@ | |||
module github.com/cloudoperators/heureka/scanners/keppel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a policy when to use github.com and when to use github.wdf.sap.com (like here: https://github.com/cloudoperators/heureka/blob/scanner_nvd/scanner/nvd/go.mod#L1) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me for PoC
* feat(scanner): init keppel scanner
No description provided.