-
Notifications
You must be signed in to change notification settings - Fork 19
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
Implementing Service Discovery Backend #147
Conversation
Signed-off-by: Amir Malka <amirm@armosec.io>
Signed-off-by: Amir Malka <amirm@armosec.io>
PR Analysis
PR Feedback
How to use
|
Signed-off-by: Amir Malka <amirm@armosec.io>
Signed-off-by: Amir Malka <amirm@armosec.io>
/describe |
Signed-off-by: Amir Malka <amirm@armosec.io>
PR Type:
Refactoring
PR Description:
This PR refactors the service discovery backend. It updates the import paths to reflect the new location of the backend package and modifies the function signatures to align with the updated backend API. The PR also includes changes to the test files to accommodate the modifications. The main changes occur in the 'backend.go' and 'backend_utils.go' files in the 'adapters/v1' directory.
PR Main Files Walkthrough:
adapters/v1/backend.go
: The 'ArmoAdapter' struct has been renamed to 'BackendAdapter'. The import paths have been updated to reflect the new location of the backend package. The function signatures have been modified to align with the updated backend API. The 'NewArmoAdapter' function has been renamed to 'NewBackendAdapter'. The 'getCVEExceptionsFunc', 'httpPostFunc', and 'sendStatusFunc' functions have been updated to use the new backend client.adapters/v1/backend_utils.go
: The import paths have been updated to reflect the new location of the backend package. The function signatures have been modified to align with the updated backend API. The 'sendSummaryAndVulnerabilities', 'postResultsAsGoroutine', 'postResults', 'sendVulnerabilitiesRoutine', and 'sendVulnerabilities' functions have been updated to use the new backend client.adapters/v1/backend_test.go
: The 'ArmoAdapter' struct has been renamed to 'BackendAdapter' in the test file. The 'NewArmoAdapter' function has been renamed to 'NewBackendAdapter'. The 'getCVEExceptionsFunc' function has been updated to use the new backend client.adapters/v1/backend_utils_test.go
: The import paths have been updated to reflect the new location of the backend package.go.mod
: The 'go.mod' file has been updated to include the new backend package.go.sum
: The 'go.sum' file has been updated to include the new backend package.