mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* GitRegoStore moved to Regolibrary * httphandler go mod * update go.mod * test old regostorlibrary * restore gitRegoStore from regolibrary * Update github.com/kubescape/regolibrary to ver 249 Signed-off-by: kooomix <eranm@armosec.io> * update go mod Signed-off-by: kooomix <eranm@armosec.io> * print scan_control_id mesg Signed-off-by: kooomix <eranm@armosec.io> * Update regolibrary version - windows host fix Signed-off-by: kooomix <eranm@armosec.io> --------- Signed-off-by: kooomix <eranm@armosec.io> Co-authored-by: David Wertenteil <dwertent@armosec.io>
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()