MCPcopy Index your code

hub / github.com/derailed/popeye / functions

Functions1,079 in github.com/derailed/popeye

↓ 174 callersMethodOutcome
Outcome collects issues.
internal/lint/types.go:20
↓ 168 callersFunctionNewGVR
NewGVR builds a new gvr from a group, version, resource.
types/gvr.go:29
↓ 143 callersFunctionLoadDB
(ctx context.Context, dba *db.DB, p string, gvr types.GVR)
internal/test/helpers.go:116
↓ 129 callersMethodAddCode
AddCode records a new issue.
internal/lint/types.go:26
↓ 55 callersMethodMustITFor
(gvr types.GVR)
internal/db/db.go:56
↓ 55 callersFunctionNew
New returns a new lint issue.
internal/issues/issue.go:28
↓ 50 callersFunctionFQN
FQN returns a fully qualified resource name.
internal/client/helpers.go:60
↓ 46 callersFunctionMakeContext
(gvr, section string)
internal/test/helpers.go:151
↓ 46 callersFunctionNewLoader
(db *DB)
internal/db/loader.go:32
↓ 45 callersFunctionNewTestDB
()
internal/test/helpers.go:29
↓ 44 callersMethodString
()
internal/rules/types.go:13
↓ 43 callersFunctionMakeCtx
(t *testing.T)
internal/test/helpers.go:134
↓ 42 callersMethodAdd
Add a collection of elements to the set.
internal/stringset.go:29
↓ 40 callersFunctionMakeCollector
(t *testing.T)
internal/test/helpers.go:130
↓ 39 callersFunctionWithSpec
(ctx context.Context, spec rules.Spec)
internal/context.go:38
↓ 38 callersFunctionNewCollector
NewCollector returns a new issue collector.
internal/issues/collector.go:27
↓ 33 callersMethodFlags
Flags tracks k8s cli flags.
types/types.go:76
↓ 32 callersMethodLint
Lint runs checks on a resource.
internal/scrub/types.go:36
↓ 31 callersFunctionFQN
FQN returns a fully qualified resource identifier.
internal/cache/helper.go:13
↓ 31 callersMethodInitOutcome
InitOutcome creates a places holder for potential issues.
internal/issues/collector.go:37
↓ 29 callersFunctionSpecFor
SpecFor construct a new run spec for a given resource.
internal/lint/helper.go:51
↓ 26 callersMethodAddErr
AddErr records errors.
internal/lint/types.go:29
↓ 26 callersMethodError
Error prints out error out.
internal/report/writer.go:92
↓ 21 callersFunctionIsStrSet
IsStrSet checks string option is set.
pkg/config/helpers.go:29
↓ 21 callersFunctionstrPtr
(s string)
pkg/config/helpers.go:42
↓ 20 callersMethodAddSubCode
AddSubCode records a sub issue.
internal/lint/types.go:23
↓ 19 callersMethodGet
Get return a given resource.
internal/dao/types.go:20
↓ 16 callersFunctionNewConfig
NewConfig returns a new k8s config or an error if the flags are invalid.
internal/client/config.go:41
↓ 16 callersMethodR
R returns the resource name.
types/gvr.go:132
↓ 16 callersFunctionResFqn
ResFqn returns a resource specific fqn.
internal/cache/helper.go:26
↓ 16 callersMethodsanitize
(ctx context.Context, co v1.Container, checkProbes bool)
internal/lint/container.go:42
↓ 15 callersFunctionNewContainer
NewContainer returns a new instance.
internal/lint/container.go:38
↓ 15 callersFunctionNewTally
NewTally returns a new tally.
internal/report/tally.go:28
↓ 14 callersMethodColor
Color or not this message by inject ansi colors.
internal/report/writer.go:172
↓ 14 callersFunctionToQty
(s string)
internal/test/helpers.go:97
↓ 13 callersMethodRollup
Rollup tallies up the report scores.
internal/report/tally.go:55
↓ 13 callersFunctionasMB
AsMB prints MB value.
internal/lint/helper.go:164
↓ 13 callersFunctionasMC
AsMC prints millicore value.
internal/lint/helper.go:159
↓ 12 callersMethodFind
(kind types.GVR, fqn string)
internal/db/db.go:145
↓ 12 callersMethodMaxSeverity
MaxSeverity
internal/report/writer.go:20
↓ 12 callersFunctionNew
New returns a new instance.
internal/report/writer.go:47
↓ 12 callersMethodclient
()
pkg/popeye.go:397
↓ 11 callersFunctionColorize
Colorize a string based on given color.
internal/report/color.go:41
↓ 11 callersMethodExists
(kind types.GVR, fqn string)
internal/db/db.go:399
↓ 11 callersMethodFor
For returns issues for a given section/group.
internal/issues/issues.go:170
↓ 11 callersMethodG
G returns the resource group name.
types/gvr.go:137
↓ 11 callersMethodMatch
(s rules.Spec)
pkg/config/config.go:58
↓ 11 callersFunctionmakeContainer
(n string, opts coOpts)
internal/lint/container_test.go:328
↓ 11 callersFunctiontoMB
ToMB converts quantity to megabytes.
internal/lint/helper.go:130
↓ 11 callersFunctiontoMC
ToMC converts quantity to millicores.
internal/lint/helper.go:125
↓ 10 callersMethodList
List returns a resource collection.
internal/dao/types.go:26
↓ 10 callersFunctionNamespaced
Namespaced converts a resource path to namespace and resource name.
internal/client/helpers.go:53
↓ 10 callersFunctionNewConfig
NewConfig create a new Popeye configuration.
pkg/config/config.go:27
↓ 10 callersFunctionNewFlags
NewFlags returns new configuration flags.
pkg/config/flags.go:50
↓ 10 callersMethodRawConfig
RawConfig fetch the current kubeconfig with no overrides.
internal/client/config.go:275
↓ 10 callersFunctionmakeSecPod
(pod, init, co1, co2 nonRootUser)
internal/lint/pod_test.go:252
↓ 10 callersMethodmatch
(ll Labels)
internal/rules/keyvals.go:38
↓ 9 callersMethodClient
Client retrieves an api client.
types/types.go:135
↓ 9 callersFunctionIsBoolSet
IsBoolSet checks bool option is set
pkg/config/helpers.go:34
↓ 9 callersFunctionWithGroup
WithGroup adds a group to the context.
internal/context.go:31
↓ 9 callersFunctionisSet
---------------------------------------------------------------------------- Helpers...
internal/client/config.go:341
↓ 8 callersMethodAddError
AddError record an error associated with the report.
internal/report/builder.go:52
↓ 8 callersMethodAddSection
AddSection adds a linter section to the report.
internal/report/builder.go:57
↓ 8 callersFunctionNewBuilder
NewBuilder returns a new instance.
internal/report/builder.go:35
↓ 8 callersMethodPrint
Print a colorized message.
internal/report/writer.go:135
↓ 8 callersMethodV
V returns the resource version.
types/gvr.go:122
↓ 7 callersMethodMatch
(spec Spec, global bool)
internal/rules/linters.go:48
↓ 7 callersMethodSort
Sort sorts issues.
internal/issues/issues.go:78
↓ 7 callersMethodString
String returns gvr as string.
types/gvr.go:83
↓ 7 callersFunctionboolPtr
(b bool)
pkg/config/helpers.go:38
↓ 7 callersFunctioncoSpecFor
(fqn string, o metav1.ObjectMetaAccessor, spec v1.PodSpec)
internal/lint/helper.go:31
↓ 7 callersFunctiondumpSel
(sel *metav1.LabelSelector)
internal/lint/np.go:245
↓ 7 callersMethodfinalize
()
internal/report/builder.go:83
↓ 6 callersMethodFormat
Format hydrates a message with arguments.
internal/rules/code.go:19
↓ 6 callersFunctionIsClusterScoped
IsClusterScoped returns true if resource is not namespaced.
internal/client/helpers.go:48
↓ 6 callersFunctionLoadCodes
LoadCodes retrieves linters codes from yaml file.
internal/issues/codes.go:22
↓ 6 callersFunctionMustExtractRunInfo
MustExtractRunInfo extracts runinfo from context or die.
internal/context.go:52
↓ 6 callersMethodaddIssue
AddIssue adds 1 or more concerns to the collector.
internal/issues/collector.go:118
↓ 6 callersMethoddump
(indent string)
internal/rules/keyvals.go:28
↓ 6 callersFunctionnewRangeCollector
(t *testing.T)
internal/lint/container_test.go:298
↓ 6 callersFunctionnoPodSel
(spec *netv1.NetworkPolicySpec)
internal/lint/np_helpers.go:8
↓ 6 callersFunctionpolInclude
(pp []netv1.PolicyType, d direction)
internal/lint/np_helpers.go:52
↓ 5 callersFunctionNewPod
NewPod returns a new instance.
internal/lint/pod.go:45
↓ 5 callersMethodOpen
Open begins a new report section.
internal/report/writer.go:55
↓ 5 callersFunctionToPerc
ToPerc computes the percentage from one number over another.
internal/lint/helper.go:117
↓ 5 callersFunctionbomb
(err error)
cmd/root.go:83
↓ 5 callersFunctioncheckCPU
(ctx context.Context, c CollectorLimiter, over bool, mx ConsumptionMetrics)
internal/lint/sts.go:94
↓ 5 callersFunctioncheckMEM
(ctx context.Context, c CollectorLimiter, over bool, mx ConsumptionMetrics)
internal/lint/sts.go:106
↓ 5 callersFunctioncontainerResources
ContainerResources gathers container resources setting.
internal/lint/helper.go:194
↓ 5 callersFunctionmakeConfig
(t *testing.T)
internal/issues/collector_test.go:256
↓ 5 callersFunctionpullOverAllocs
Helpers... PullOverAllocs check for over allocation setting in context.
internal/lint/dp.go:96
↓ 4 callersMethodActiveNamespace
ActiveNamespace returns the current namespace.
types/types.go:126
↓ 4 callersMethodClose
Close a report section.
internal/report/writer.go:76
↓ 4 callersMethodCompact
Compact removes zero entries.
internal/issues/tally/code.go:21
↓ 4 callersMethodDump
Dump writes out tally and computes length
internal/report/tally.go:107
↓ 4 callersFunctionEmojiForLevel
EmojiForLevel maps lint levels to emojis.
internal/report/emoji.go:31
↓ 4 callersMethodEmpty
()
internal/lint/pod.go:40
↓ 4 callersMethodFindPodsBySel
(ns string, sel *metav1.LabelSelector)
internal/db/db.go:241
↓ 4 callersMethodGVR
GVR returns a gvr a string.
internal/dao/types.go:38
↓ 4 callersMethodHas
Has checks if an item is in the set.
internal/stringset.go:45
next →1–100 of 1,079, ranked by callers