SYMBOL INDEX (138 symbols across 33 files) FILE: cmd/root.go function Execute (line 39) | func Execute() { function isKubectlPlugin (line 46) | func isKubectlPlugin() bool { function execName (line 50) | func execName() string { function init (line 58) | func init() { function initNoColor (line 76) | func initNoColor() { FILE: cmd/scan.go function init (line 69) | func init() { FILE: cmd/version.go function init (line 58) | func init() { FILE: internal/builtins/embed_test.go function TestEmbedChecks (line 23) | func TestEmbedChecks(t *testing.T) { FILE: main.go function main (line 19) | func main() { FILE: pkg/cmd/scan.go type ScanOptions (line 42) | type ScanOptions struct method AddFlags (line 80) | func (o *ScanOptions) AddFlags(flags *pflag.FlagSet) { method Init (line 106) | func (o *ScanOptions) Init(ctx context.Context) error { method Validate (line 155) | func (o *ScanOptions) Validate() error { method ToDynamicClient (line 163) | func (o *ScanOptions) ToDynamicClient() (*dynamic.DynamicClient, error) { method Run (line 172) | func (o *ScanOptions) Run() (bool, error) { method getChecks (line 192) | func (o *ScanOptions) getChecks() ([]types.Check, error) { method runCheck (line 212) | func (o *ScanOptions) runCheck(check types.Check) *types.CheckResult { method loadResources (line 253) | func (o *ScanOptions) loadResources(check types.Check) (map[string][]u... method isSkipped (line 281) | func (o *ScanOptions) isSkipped(checkID string, annotations map[string... method addGVR (line 302) | func (o *ScanOptions) addGVR(obj unstructured.Unstructured, gvr string) { function NewScanOptions (line 65) | func NewScanOptions() *ScanOptions { FILE: pkg/loader/builtin.go function init (line 28) | func init() { FILE: pkg/loader/builtin_test.go function TestBuiltins (line 23) | func TestBuiltins(t *testing.T) { FILE: pkg/loader/loader.go type ChecksMap (line 31) | type ChecksMap method toList (line 37) | func (cm ChecksMap) toList() []types.Check { type TestsMap (line 32) | type TestsMap type readFileFunc (line 33) | type readFileFunc function LoadChecks (line 56) | func LoadChecks(root string) ([]types.Check, error) { function LoadChecksAndTests (line 62) | func LoadChecksAndTests(root string) (ChecksMap, TestsMap, error) { function load (line 66) | func load(root string) (ChecksMap, TestsMap, error) { function walkDir (line 75) | func walkDir(readFileFn readFileFunc, builtin bool) (ChecksMap, TestsMap... function parseCheck (line 117) | func parseCheck(ext string, bs []byte) (types.Check, error) { function parseTests (line 122) | func parseTests(ext string, bs []byte) ([]types.Test, error) { function parse (line 127) | func parse[T any](ext string, bs []byte, obj T) (T, error) { FILE: pkg/loader/loader_test.go function TestLoadChecks (line 23) | func TestLoadChecks(t *testing.T) { function TestLoadChecksAndTests (line 88) | func TestLoadChecksAndTests(t *testing.T) { FILE: pkg/printers/interface.go type Printer (line 24) | type Printer interface FILE: pkg/printers/json.go type JSONPrinter (line 25) | type JSONPrinter struct method PrintObj (line 27) | func (*JSONPrinter) PrintObj(report types.Report, w io.Writer) error { FILE: pkg/printers/md.go type MarkdownPrinter (line 26) | type MarkdownPrinter struct method PrintObj (line 28) | func (*MarkdownPrinter) PrintObj(report types.Report, w io.Writer) err... FILE: pkg/printers/table.go type TablePrinter (line 38) | type TablePrinter struct method PrintObj (line 41) | func (r *TablePrinter) PrintObj(report types.Report, w io.Writer) error { function renderTable (line 59) | func renderTable(report types.Report, t *tablewriter.Table) { function colorSeverity (line 87) | func colorSeverity(s types.Severity) string { function colorStatus (line 101) | func colorStatus(s types.CheckStatus) string { FILE: pkg/printers/yaml.go type YAMLPrinter (line 27) | type YAMLPrinter struct method PrintObj (line 29) | func (*YAMLPrinter) PrintObj(report types.Report, w io.Writer) error { FILE: pkg/types/check.go type Check (line 22) | type Check struct type Match (line 36) | type Match struct type ResourceRule (line 40) | type ResourceRule struct method ToGVR (line 46) | func (r *ResourceRule) ToGVR() schema.GroupVersionResource { type Validation (line 50) | type Validation struct type Variable (line 55) | type Variable struct type Test (line 60) | type Test struct FILE: pkg/types/check_test.go function TestResourceRule_ToGVR (line 26) | func TestResourceRule_ToGVR(t *testing.T) { FILE: pkg/types/report.go type Report (line 24) | type Report struct method Add (line 34) | func (r *Report) Add(cr *CheckResult) { method HasError (line 38) | func (r *Report) HasError() bool { function NewReport (line 30) | func NewReport(kubeVersion *version.Info) *Report { type CheckResult (line 47) | type CheckResult struct method AddFailed (line 82) | func (r *CheckResult) AddFailed(obj unstructured.Unstructured) { method AddPassed (line 87) | func (r *CheckResult) AddPassed(obj unstructured.Unstructured) { method AddSkipped (line 92) | func (r *CheckResult) AddSkipped(obj unstructured.Unstructured) { method AddError (line 97) | func (r *CheckResult) AddError(err error) { method AddErrors (line 101) | func (r *CheckResult) AddErrors(errs ...error) { method UpdateStatus (line 107) | func (r *CheckResult) UpdateStatus() { function NewCheckResult (line 66) | func NewCheckResult(check Check) *CheckResult { function GVK (line 125) | func GVK(obj unstructured.Unstructured) string { function NamespacedName (line 131) | func NamespacedName(obj unstructured.Unstructured) string { function addResource (line 138) | func addResource(obj unstructured.Unstructured, m map[string][]string) { FILE: pkg/types/report_test.go function TestReport (line 42) | func TestReport(t *testing.T) { function obj (line 118) | func obj(apiVersion, kind, ns, name string) unstructured.Unstructured { FILE: pkg/types/severity.go type Severity (line 22) | type Severity method String (line 32) | func (s Severity) String() string { method UnmarshalJSON (line 62) | func (s *Severity) UnmarshalJSON(b []byte) error { method MarshalJSON (line 67) | func (s Severity) MarshalJSON() ([]byte, error) { constant SeverityUnknown (line 25) | SeverityUnknown Severity = iota constant SeverityLow (line 26) | SeverityLow constant SeverityMedium (line 27) | SeverityMedium constant SeverityHigh (line 28) | SeverityHigh constant SeverityCritical (line 29) | SeverityCritical function ParseSeverity (line 47) | func ParseSeverity(s string) Severity { FILE: pkg/types/severity_test.go type severityHolder (line 24) | type severityHolder struct function TestSeverityMarshalJSON (line 28) | func TestSeverityMarshalJSON(t *testing.T) { function TestSeverityUnmarshalJSON (line 68) | func TestSeverityUnmarshalJSON(t *testing.T) { FILE: pkg/types/status.go type CheckStatus (line 22) | type CheckStatus method String (line 32) | func (s CheckStatus) String() string { method UnmarshalJSON (line 62) | func (s *CheckStatus) UnmarshalJSON(b []byte) error { method MarshalJSON (line 67) | func (s CheckStatus) MarshalJSON() ([]byte, error) { constant StatusUnknown (line 25) | StatusUnknown CheckStatus = iota constant StatusPassed (line 26) | StatusPassed constant StatusSkipped (line 27) | StatusSkipped constant StatusFailed (line 28) | StatusFailed constant StatusError (line 29) | StatusError function ParseStatus (line 47) | func ParseStatus(s string) CheckStatus { FILE: pkg/types/status_test.go type statusHolder (line 24) | type statusHolder struct function TestCheckStatusMarshalJSON (line 28) | func TestCheckStatusMarshalJSON(t *testing.T) { function TestCheckStatusUnmarshalJSON (line 59) | func TestCheckStatusUnmarshalJSON(t *testing.T) { FILE: pkg/validator/activation.go constant ObjectVarName (line 22) | ObjectVarName = "object" constant ParamsVarName (line 23) | ParamsVarName = "params" constant PodMetaVarName (line 24) | PodMetaVarName = "podMeta" constant PodSpecVarName (line 25) | PodSpecVarName = "podSpec" constant AllContainersVarName (line 26) | AllContainersVarName = "allContainers" constant APIVersionsVarName (line 27) | APIVersionsVarName = "apiVersions" constant KubeVersionVarName (line 28) | KubeVersionVarName = "kubeVersion" constant VariableVarName (line 29) | VariableVarName = "variables" type activation (line 33) | type activation struct method ResolveName (line 44) | func (a *activation) ResolveName(name string) (any, bool) { method Parent (line 67) | func (a *activation) Parent() interpreter.Activation { FILE: pkg/validator/compiler.go function Compile (line 73) | func Compile(check types.Check, apiResources []*metav1.APIResourceList, ... function newEnv (line 99) | func newEnv(check types.Check) (*cel.Env, error) { function compileVariables (line 113) | func compileVariables(env *cel.Env, vars []types.Variable, costLimit uin... function compileValidations (line 125) | func compileValidations(env *cel.Env, vals []types.Validation, costLimit... function compileExpression (line 137) | func compileExpression(env *cel.Env, exp string, costLimit uint64, allow... FILE: pkg/validator/compiler_test.go function TestCompile (line 27) | func TestCompile(t *testing.T) { FILE: pkg/validator/interface.go type Validator (line 23) | type Validator interface FILE: pkg/validator/podspec.go function MatchesPodSpec (line 32) | func MatchesPodSpec(rules []types.ResourceRule) bool { function HasPodSpec (line 55) | func HasPodSpec(u unstructured.Unstructured) bool { function ExtractPodSpec (line 62) | func ExtractPodSpec(u unstructured.Unstructured) (*metav1.ObjectMeta, *c... function extractPodSpecFromTemplate (line 108) | func extractPodSpecFromTemplate(template *corev1.PodTemplateSpec) (*meta... function extractAllContainers (line 115) | func extractAllContainers(podSpec *corev1.PodSpec) []corev1.Container { FILE: pkg/validator/podspec_test.go function TestMatchesPodSpec (line 28) | func TestMatchesPodSpec(t *testing.T) { function TestExtractPodSpec (line 104) | func TestExtractPodSpec(t *testing.T) { function TestExtractAllContainers (line 237) | func TestExtractAllContainers(t *testing.T) { FILE: pkg/validator/validator.go type CELValidator (line 31) | type CELValidator struct method SetAPIVersions (line 44) | func (r *CELValidator) SetAPIVersions(apiVersions []string) { method SetKubeVersion (line 48) | func (r *CELValidator) SetKubeVersion(v *version.Info) { method Validate (line 52) | func (r *CELValidator) Validate(obj unstructured.Unstructured, params ... method setPodSpecParams (line 87) | func (r *CELValidator) setPodSpecParams(obj unstructured.Unstructured,... type compiledVariable (line 39) | type compiledVariable struct function callback (line 77) | func callback(v compiledVariable, activation any) lazy.GetFieldFunc { FILE: pkg/version/version.go type Info (line 27) | type Info struct method String (line 35) | func (i Info) String() string { function Get (line 39) | func Get() Info { FILE: pkg/version/version_test.go function TestGet (line 22) | func TestGet(t *testing.T) { FILE: test/builtins_test.go function TestBuiltinChecks (line 28) | func TestBuiltinChecks(t *testing.T) { function parse (line 59) | func parse(i string) (unstructured.Unstructured, error) {