SYMBOL INDEX (244 symbols across 20 files) FILE: check/check.go type NodeType (line 27) | type NodeType type State (line 30) | type State constant PASS (line 34) | PASS State = "PASS" constant FAIL (line 36) | FAIL State = "FAIL" constant WARN (line 38) | WARN State = "WARN" constant INFO (line 40) | INFO State = "INFO" constant SKIP (line 43) | SKIP = "skip" constant MASTER (line 46) | MASTER NodeType = "master" constant NODE (line 48) | NODE NodeType = "node" constant FEDERATED (line 50) | FEDERATED NodeType = "federated" constant ETCD (line 53) | ETCD NodeType = "etcd" constant CONTROLPLANE (line 55) | CONTROLPLANE NodeType = "controlplane" constant POLICIES (line 57) | POLICIES NodeType = "policies" constant MANAGEDSERVICES (line 59) | MANAGEDSERVICES = "managedservices" constant MANUAL (line 62) | MANUAL string = "manual" type Check (line 67) | type Check struct method run (line 109) | func (c *Check) run() State { method runAuditCommands (line 195) | func (c *Check) runAuditCommands() (lastCommand string, err error) { method execute (line 224) | func (c *Check) execute() (finalOutput *testOutput, err error) { type Runner (line 91) | type Runner interface function NewRunner (line 97) | func NewRunner() Runner { type defaultRunner (line 101) | type defaultRunner struct method Run (line 103) | func (r *defaultRunner) Run(c *Check) State { function runAudit (line 291) | func runAudit(audit string) (output string, err error) { FILE: check/check_test.go function TestCheck_Run (line 22) | func TestCheck_Run(t *testing.T) { function TestCheckAuditEnv (line 109) | func TestCheckAuditEnv(t *testing.T) { function TestCheckAuditConfig (line 142) | func TestCheckAuditConfig(t *testing.T) { function Test_runAudit (line 185) | func Test_runAudit(t *testing.T) { FILE: check/controls.go constant UNKNOWN (line 34) | UNKNOWN = "Unknown" constant ARN (line 36) | ARN = "arn:aws:securityhub:%s::product/aqua-security/kube-bench" constant SCHEMA (line 38) | SCHEMA = "2018-10-08" constant TYPE (line 40) | TYPE = "Software and Configuration Checks/Industry and Regulatory Standa... type OverallControls (line 43) | type OverallControls struct type Controls (line 49) | type Controls struct method RunChecks (line 99) | func (controls *Controls) RunChecks(runner Runner, filter Predicate, s... method JSON (line 152) | func (controls *Controls) JSON() ([]byte, error) { method JUnit (line 157) | func (controls *Controls) JUnit() ([]byte, error) { method ASFF (line 209) | func (controls *Controls) ASFF() ([]types.AwsSecurityFinding, error) { type Group (line 60) | type Group struct type Summary (line 72) | type Summary struct type Predicate (line 80) | type Predicate function NewControls (line 83) | func NewControls(t NodeType, in []byte, detectedVersion string) (*Contro... function getConfig (line 294) | func getConfig(name string) (string, error) { function summarize (line 302) | func summarize(controls *Controls, state State) { function summarizeGroup (line 317) | func summarizeGroup(group *Group, state State) { FILE: check/controls_test.go constant cfgDir (line 36) | cfgDir = "../cfg/" type mockRunner (line 38) | type mockRunner struct method Run (line 42) | func (m *mockRunner) Run(c *Check) State { function TestYamlFiles (line 48) | func TestYamlFiles(t *testing.T) { function TestNewControls (line 75) | func TestNewControls(t *testing.T) { function TestControls_RunChecks_SkippedCmd (line 101) | func TestControls_RunChecks_SkippedCmd(t *testing.T) { function TestControls_RunChecks_Skipped (line 141) | func TestControls_RunChecks_Skipped(t *testing.T) { function TestControls_RunChecks (line 169) | func TestControls_RunChecks(t *testing.T) { function TestControls_JUnitIncludesJSON (line 238) | func TestControls_JUnitIncludesJSON(t *testing.T) { function assertEqualGroupSummary (line 357) | func assertEqualGroupSummary(t *testing.T, pass, fail, info, warn int, a... function TestControls_ASFF (line 365) | func TestControls_ASFF(t *testing.T) { FILE: check/test.go type binOp (line 38) | type binOp constant and (line 41) | and binOp = "and" constant or (line 42) | or = "or" constant defaultArraySeparator (line 43) | defaultArraySeparator = "," type tests (line 46) | type tests struct type AuditUsed (line 51) | type AuditUsed constant AuditCommand (line 54) | AuditCommand AuditUsed = "auditCommand" constant AuditConfig (line 55) | AuditConfig AuditUsed = "auditConfig" constant AuditEnv (line 56) | AuditEnv AuditUsed = "auditEnv" type testItem (line 59) | type testItem struct method value (line 93) | func (t testItem) value() string { method findValue (line 105) | func (t testItem) findValue(s string) (match bool, value string, err e... method execute (line 195) | func (t testItem) execute(s string) *testOutput { method evaluate (line 219) | func (t testItem) evaluate(s string) *testOutput { method UnmarshalYAML (line 435) | func (t *testItem) UnmarshalYAML(unmarshal func(interface{}) error) er... type envTestItem (line 72) | type envTestItem method findValue (line 176) | func (t envTestItem) findValue(s string) (match bool, value string, er... type pathTestItem (line 73) | type pathTestItem method findValue (line 158) | func (t pathTestItem) findValue(s string) (match bool, value string, e... type flagTestItem (line 74) | type flagTestItem method findValue (line 120) | func (t flagTestItem) findValue(s string) (match bool, value string, e... type compare (line 77) | type compare struct type testOutput (line 82) | type testOutput struct function failTestItem (line 89) | func failTestItem(s string) *testOutput { function compareOp (line 259) | func compareOp(tCompareOp string, flagVal string, tCompareValue string, ... function unmarshal (line 349) | func unmarshal(s string, jsonInterface *interface{}) error { function executeJSONPath (line 361) | func executeJSONPath(path string, jsonInterface interface{}) (string, er... function allElementsValid (line 378) | func allElementsValid(s, t []string) bool { function splitAndRemoveLastSeparator (line 408) | func splitAndRemoveLastSeparator(s, sep string) []string { function toNumeric (line 422) | func toNumeric(a, b string) (c, d int, err error) { FILE: check/test_test.go function init (line 29) | func init() { function TestTestExecute (line 47) | func TestTestExecute(t *testing.T) { function TestTestExecuteExceptions (line 305) | func TestTestExecuteExceptions(t *testing.T) { function TestTestUnmarshal (line 346) | func TestTestUnmarshal(t *testing.T) { function TestExecuteJSONPath (line 413) | func TestExecuteJSONPath(t *testing.T) { function TestAllElementsValid (line 473) | func TestAllElementsValid(t *testing.T) { function TestSplitAndRemoveLastSeparator (line 539) | func TestSplitAndRemoveLastSeparator(t *testing.T) { function TestCompareOp (line 586) | func TestCompareOp(t *testing.T) { function TestToNumeric (line 1241) | func TestToNumeric(t *testing.T) { function TestExecuteJSONPathOnEncryptionConfig (line 1278) | func TestExecuteJSONPathOnEncryptionConfig(t *testing.T) { FILE: cmd/common.go function NewRunFilter (line 33) | func NewRunFilter(opts FilterOpts) (check.Predicate, error) { function runChecks (line 66) | func runChecks(nodetype check.NodeType, testYamlFile, detectedVersion st... function generateDefaultEnvAudit (line 126) | func generateDefaultEnvAudit(controls *check.Controls, binSubs []string) { function parseSkipIds (line 150) | func parseSkipIds(skipIds string) map[string]bool { function colorPrint (line 161) | func colorPrint(state check.State, s string) { function prettyPrint (line 167) | func prettyPrint(r *check.Controls, summary check.Summary) { function printSummary (line 214) | func printSummary(summary check.Summary, sectionName string) { function loadConfig (line 233) | func loadConfig(nodetype check.NodeType, benchmarkVersion string) string { function mergeConfig (line 263) | func mergeConfig(path string) error { function mapToBenchmarkVersion (line 279) | func mapToBenchmarkVersion(kubeToBenchmarkMap map[string]string, kv stri... function loadVersionMapping (line 298) | func loadVersionMapping(v *viper.Viper) (map[string]string, error) { function loadTargetMapping (line 307) | func loadTargetMapping(v *viper.Viper) (map[string][]string, error) { function getBenchmarkVersion (line 316) | func getBenchmarkVersion(kubeVersion, benchmarkVersion string, platform ... function isMaster (line 356) | func isMaster() bool { function isEtcd (line 361) | func isEtcd() bool { function isThisNodeRunning (line 365) | func isThisNodeRunning(nodeType check.NodeType) bool { function exitCodeSelection (line 387) | func exitCodeSelection(controlsCollection []*check.Controls) int { function writeOutput (line 397) | func writeOutput(controlsCollection []*check.Controls) { function writeJSONOutput (line 422) | func writeJSONOutput(controlsCollection []*check.Controls) { function writeJunitOutput (line 439) | func writeJunitOutput(controlsCollection []*check.Controls) { function writePgsqlOutput (line 455) | func writePgsqlOutput(controlsCollection []*check.Controls) { function writeASFFOutput (line 465) | func writeASFFOutput(controlsCollection []*check.Controls) { function writeStdoutOutput (line 477) | func writeStdoutOutput(controlsCollection []*check.Controls) { function getSummaryTotals (line 487) | func getSummaryTotals(controlsCollection []*check.Controls) check.Summary { function printRawOutput (line 499) | func printRawOutput(output string) { function writeOutputToFile (line 505) | func writeOutputToFile(output string, outputFile string) error { function printOutput (line 517) | func printOutput(output string, outputFile string) { function validTargets (line 530) | func validTargets(benchmarkVersion string, targets []string, v *viper.Vi... FILE: cmd/common_test.go type JsonOutputFormat (line 33) | type JsonOutputFormat struct type JsonOutputFormatNoTotals (line 38) | type JsonOutputFormatNoTotals struct function TestParseSkipIds (line 42) | func TestParseSkipIds(t *testing.T) { function TestNewRunFilter (line 54) | func TestNewRunFilter(t *testing.T) { function TestIsMaster (line 143) | func TestIsMaster(t *testing.T) { function TestMapToCISVersion (line 212) | func TestMapToCISVersion(t *testing.T) { function TestLoadVersionMapping (line 285) | func TestLoadVersionMapping(t *testing.T) { function TestGetBenchmarkVersion (line 331) | func TestGetBenchmarkVersion(t *testing.T) { function TestValidTargets (line 403) | func TestValidTargets(t *testing.T) { function TestIsEtcd (line 501) | func TestIsEtcd(t *testing.T) { function TestWriteResultToJsonFile (line 570) | func TestWriteResultToJsonFile(t *testing.T) { function TestWriteResultNoTotalsToJsonFile (line 600) | func TestWriteResultNoTotalsToJsonFile(t *testing.T) { function TestExitCodeSelection (line 632) | func TestExitCodeSelection(t *testing.T) { function TestGenerationDefaultEnvAudit (line 650) | func TestGenerationDefaultEnvAudit(t *testing.T) { function TestGetSummaryTotals (line 685) | func TestGetSummaryTotals(t *testing.T) { function TestPrintSummary (line 698) | func TestPrintSummary(t *testing.T) { function TestPrettyPrintNoSummary (line 716) | func TestPrettyPrintNoSummary(t *testing.T) { function TestPrettyPrintSummary (line 735) | func TestPrettyPrintSummary(t *testing.T) { function TestWriteStdoutOutputNoTotal (line 754) | func TestWriteStdoutOutputNoTotal(t *testing.T) { function TestWriteStdoutOutputTotal (line 772) | func TestWriteStdoutOutputTotal(t *testing.T) { function parseControlsJsonFile (line 793) | func parseControlsJsonFile(filepath string) ([]*check.Controls, error) { function parseResultJsonFile (line 808) | func parseResultJsonFile(filepath string) (JsonOutputFormat, error) { function parseResultNoTotalsJsonFile (line 823) | func parseResultNoTotalsJsonFile(filepath string) ([]*check.Controls, er... function loadConfigForTest (line 838) | func loadConfigForTest() (*viper.Viper, error) { type restoreFn (line 847) | type restoreFn function fakeExecutableInPath (line 849) | func fakeExecutableInPath(execFile, execCode string) (restoreFn, error) { function prunePath (line 888) | func prunePath() (restoreFn, error) { FILE: cmd/database.go type PsqlConnInfo (line 14) | type PsqlConnInfo struct method toString (line 67) | func (c *PsqlConnInfo) toString() string { function getPsqlConnInfo (line 22) | func getPsqlConnInfo() (PsqlConnInfo, error) { function savePgsql (line 77) | func savePgsql(jsonInfo string) { FILE: cmd/kubernetes_version.go type KubeVersion (line 17) | type KubeVersion struct method BaseVersion (line 24) | func (k *KubeVersion) BaseVersion() string { function getKubeVersionFromRESTAPI (line 35) | func getKubeVersionFromRESTAPI() (*KubeVersion, error) { function getWebDataWithRetry (line 71) | func getWebDataWithRetry(k8sVersionURL, token string, cacert *tls.Certif... type VersionResponse (line 86) | type VersionResponse struct function extractVersion (line 98) | func extractVersion(data []byte) (*KubeVersion, error) { function getWebData (line 114) | func getWebData(srvURL, token string, cacert *tls.Certificate) ([]byte, ... function loadCertificate (line 149) | func loadCertificate(certFile string) (*tls.Certificate, error) { function getKubernetesURL (line 166) | func getKubernetesURL() string { FILE: cmd/kubernetes_version_test.go function TestLoadCertificate (line 13) | func TestLoadCertificate(t *testing.T) { function TestGetWebData (line 78) | func TestGetWebData(t *testing.T) { function TestGetWebDataWithRetry (line 127) | func TestGetWebDataWithRetry(t *testing.T) { function TestExtractVersion (line 176) | func TestExtractVersion(t *testing.T) { function TestGetKubernetesURL (line 231) | func TestGetKubernetesURL(t *testing.T) { FILE: cmd/root.go type FilterOpts (line 28) | type FilterOpts struct function Execute (line 145) | func Execute() { function init (line 158) | func init() { function initConfig (line 206) | func initConfig() { FILE: cmd/run.go function init (line 15) | func init() { function run (line 69) | func run(targets []string, benchmarkVersion string) (err error) { function getTestYamlFiles (line 87) | func getTestYamlFiles(targets []string, benchmarkVersion string) (yamlFi... function translate (line 110) | func translate(target string) string { FILE: cmd/run_test.go function TestGetTestYamlFiles (line 9) | func TestGetTestYamlFiles(t *testing.T) { function TestTranslate (line 85) | func TestTranslate(t *testing.T) { FILE: cmd/securityHub.go constant REGION (line 16) | REGION = "AWS_REGION" function writeFinding (line 18) | func writeFinding(in []types.AwsSecurityFinding) error { function print (line 35) | func print(out *findings.PublisherOutput) { FILE: cmd/util.go function init (line 46) | func init() { type Platform (line 52) | type Platform struct method String (line 57) | func (p Platform) String() string { function exitWithError (line 61) | func exitWithError(err error) { function cleanIDs (line 68) | func cleanIDs(list string) map[string]bool { function ps (line 83) | func ps(proc string) string { function getBinaries (line 99) | func getBinaries(v *viper.Viper, nodetype check.NodeType) (map[string]st... function getConfigFilePath (line 132) | func getConfigFilePath(benchmarkVersion string, filename string) (path s... function getYamlFilesFromDir (line 148) | func getYamlFilesFromDir(path string) (names []string, err error) { function decrementVersion (line 167) | func decrementVersion(version string) string { function getFiles (line 184) | func getFiles(v *viper.Viper, fileType string) map[string]string { function verifyBin (line 217) | func verifyBin(bin string) bool { function findConfigFile (line 244) | func findConfigFile(candidates []string) string { function findExecutable (line 259) | func findExecutable(candidates []string) (string, error) { function multiWordReplace (line 270) | func multiWordReplace(s string, subname string, sub string) string { constant missingKubectlKubeletMessage (line 279) | missingKubectlKubeletMessage = ` function getKubeVersion (line 298) | func getKubeVersion() (*KubeVersion, error) { function getKubeVersionFromKubectl (line 361) | func getKubeVersionFromKubectl() *KubeVersion { function getKubeVersionFromKubelet (line 372) | func getKubeVersionFromKubelet() *KubeVersion { function getVersionFromKubectlOutput (line 383) | func getVersionFromKubectlOutput(s string) *KubeVersion { function getVersionFromKubeletOutput (line 406) | func getVersionFromKubeletOutput(s string) *KubeVersion { function makeSubstitutions (line 417) | func makeSubstitutions(s string, ext string, m map[string]string) (strin... function isEmpty (line 436) | func isEmpty(str string) bool { function buildComponentMissingErrorMessage (line 440) | func buildComponentMissingErrorMessage(nodetype check.NodeType, componen... function getPlatformInfo (line 471) | func getPlatformInfo() Platform { function getPlatformInfoFromVersion (line 486) | func getPlatformInfoFromVersion(s string) Platform { function IsAKS (line 498) | func IsAKS(ctx context.Context, k8sClient kubernetes.Interface) (bool, e... function getPlatformBenchmarkVersion (line 521) | func getPlatformBenchmarkVersion(platform Platform) string { function eksBenchmark (line 548) | func eksBenchmark(version string) string { function aksBenchmark (line 561) | func aksBenchmark(version string) string { function gkeBenchmark (line 572) | func gkeBenchmark(version string) string { function ocpBenchmark (line 585) | func ocpBenchmark(version string) string { function k3sBenchmark (line 600) | func k3sBenchmark(version string) string { function rkeBenchmark (line 613) | func rkeBenchmark(version string) string { function rke2Benchmark (line 626) | func rke2Benchmark(version string) string { function getOpenShiftInfo (line 641) | func getOpenShiftInfo() Platform { function getOcpValidVersion (line 676) | func getOcpValidVersion(ocpVer string) (string, error) { function IsRKE (line 693) | func IsRKE(ctx context.Context, k8sClient kubernetes.Interface) (bool, e... FILE: cmd/util_test.go function fakeps (line 38) | func fakeps(proc string) string { function fakestat (line 42) | func fakestat(file string) (os.FileInfo, error) { function TestVerifyBin (line 48) | func TestVerifyBin(t *testing.T) { function TestFindExecutable (line 80) | func TestFindExecutable(t *testing.T) { function TestGetBinaries (line 116) | func TestGetBinaries(t *testing.T) { function TestMultiWordReplace (line 187) | func TestMultiWordReplace(t *testing.T) { function Test_getVersionFromKubectlOutput (line 209) | func Test_getVersionFromKubectlOutput(t *testing.T) { function TestFindConfigFile (line 227) | func TestFindConfigFile(t *testing.T) { function TestGetConfigFiles (line 252) | func TestGetConfigFiles(t *testing.T) { function TestGetServiceFiles (line 324) | func TestGetServiceFiles(t *testing.T) { function TestGetDatadirFiles (line 399) | func TestGetDatadirFiles(t *testing.T) { function TestMakeSubsitutions (line 451) | func TestMakeSubsitutions(t *testing.T) { function TestGetConfigFilePath (line 474) | func TestGetConfigFilePath(t *testing.T) { function TestDecrementVersion (line 520) | func TestDecrementVersion(t *testing.T) { function TestGetYamlFilesFromDir (line 546) | func TestGetYamlFilesFromDir(t *testing.T) { function Test_getPlatformNameFromKubectlOutput (line 581) | func Test_getPlatformNameFromKubectlOutput(t *testing.T) { function Test_getPlatformBenchmarkVersion (line 644) | func Test_getPlatformBenchmarkVersion(t *testing.T) { function Test_getOcpValidVersion (line 824) | func Test_getOcpValidVersion(t *testing.T) { FILE: cmd/version.go function init (line 21) | func init() { FILE: internal/findings/publisher.go type Publisher (line 12) | type Publisher struct method PublishFinding (line 40) | func (p *Publisher) PublishFinding(finding []types.AwsSecurityFinding)... type PublisherOutput (line 17) | type PublisherOutput struct function New (line 33) | func New(client securityhub.Client) *Publisher { FILE: main.go function main (line 21) | func main() {