mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-06 18:56:53 +00:00
Return a struct with the data for ease of use Signed-off-by: Fernando-hub527 <fernandocoelhosaraivanando@gmail.com>
Kubescape core package
// initialize kubescape
ks := core.NewKubescape()
// scan cluster
results, err := ks.Scan(&cautils.ScanInfo{})
// convert scan results to json
jsonRes, err := results.ToJson()