mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-31 07:52:09 +00:00
14 lines
215 B
Markdown
14 lines
215 B
Markdown
# Kubescape core package
|
|
|
|
```go
|
|
|
|
// initialize kubescape
|
|
ks := core.NewKubescape()
|
|
|
|
// scan cluster
|
|
results, err := ks.Scan(&cautils.ScanInfo{})
|
|
|
|
// convert scan results to json
|
|
jsonRes, err := results.ToJson()
|
|
|
|
``` |