Backend: Create client to connect with KubeScape
Description:
Implement a Golang client to interact with Kubescape's API or CLI for running compliance scans and retrieving results.
Tasks:
-
Configuration
- Execute Kubescape go binary and export data.
-
Client Implementation
- Execute compliance scans using Kubescape.
- Fetch and normalize scan results for processing.
-
Error Handling
- Handle errors for API/CLI execution and transient failures.
-
Testing
- Write unit tests for successful and failed API/CLI calls.
- Conduct integration tests with Kubescape.
Acceptance Criteria:
- Golang client supports compliance scans and result retrieval.
- Handles errors robustly.
- Unit and integration tests validate functionality.