Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/derailed/popeye
/ functions
Functions
1,079 in github.com/derailed/popeye
⨍
Functions
1,079
◇
Types & classes
204
↓ 174 callers
Method
Outcome
Outcome collects issues.
internal/lint/types.go:20
↓ 168 callers
Function
NewGVR
NewGVR builds a new gvr from a group, version, resource.
types/gvr.go:29
↓ 143 callers
Function
LoadDB
(ctx context.Context, dba *db.DB, p string, gvr types.GVR)
internal/test/helpers.go:116
↓ 129 callers
Method
AddCode
AddCode records a new issue.
internal/lint/types.go:26
↓ 55 callers
Method
MustITFor
(gvr types.GVR)
internal/db/db.go:56
↓ 55 callers
Function
New
New returns a new lint issue.
internal/issues/issue.go:28
↓ 50 callers
Function
FQN
FQN returns a fully qualified resource name.
internal/client/helpers.go:60
↓ 46 callers
Function
MakeContext
(gvr, section string)
internal/test/helpers.go:151
↓ 46 callers
Function
NewLoader
(db *DB)
internal/db/loader.go:32
↓ 45 callers
Function
NewTestDB
()
internal/test/helpers.go:29
↓ 44 callers
Method
String
()
internal/rules/types.go:13
↓ 43 callers
Function
MakeCtx
(t *testing.T)
internal/test/helpers.go:134
↓ 42 callers
Method
Add
Add a collection of elements to the set.
internal/stringset.go:29
↓ 40 callers
Function
MakeCollector
(t *testing.T)
internal/test/helpers.go:130
↓ 39 callers
Function
WithSpec
(ctx context.Context, spec rules.Spec)
internal/context.go:38
↓ 38 callers
Function
NewCollector
NewCollector returns a new issue collector.
internal/issues/collector.go:27
↓ 33 callers
Method
Flags
Flags tracks k8s cli flags.
types/types.go:76
↓ 32 callers
Method
Lint
Lint runs checks on a resource.
internal/scrub/types.go:36
↓ 31 callers
Function
FQN
FQN returns a fully qualified resource identifier.
internal/cache/helper.go:13
↓ 31 callers
Method
InitOutcome
InitOutcome creates a places holder for potential issues.
internal/issues/collector.go:37
↓ 29 callers
Function
SpecFor
SpecFor construct a new run spec for a given resource.
internal/lint/helper.go:51
↓ 26 callers
Method
AddErr
AddErr records errors.
internal/lint/types.go:29
↓ 26 callers
Method
Error
Error prints out error out.
internal/report/writer.go:92
↓ 21 callers
Function
IsStrSet
IsStrSet checks string option is set.
pkg/config/helpers.go:29
↓ 21 callers
Function
strPtr
(s string)
pkg/config/helpers.go:42
↓ 20 callers
Method
AddSubCode
AddSubCode records a sub issue.
internal/lint/types.go:23
↓ 19 callers
Method
Get
Get return a given resource.
internal/dao/types.go:20
↓ 16 callers
Function
NewConfig
NewConfig returns a new k8s config or an error if the flags are invalid.
internal/client/config.go:41
↓ 16 callers
Method
R
R returns the resource name.
types/gvr.go:132
↓ 16 callers
Function
ResFqn
ResFqn returns a resource specific fqn.
internal/cache/helper.go:26
↓ 16 callers
Method
sanitize
(ctx context.Context, co v1.Container, checkProbes bool)
internal/lint/container.go:42
↓ 15 callers
Function
NewContainer
NewContainer returns a new instance.
internal/lint/container.go:38
↓ 15 callers
Function
NewTally
NewTally returns a new tally.
internal/report/tally.go:28
↓ 14 callers
Method
Color
Color or not this message by inject ansi colors.
internal/report/writer.go:172
↓ 14 callers
Function
ToQty
(s string)
internal/test/helpers.go:97
↓ 13 callers
Method
Rollup
Rollup tallies up the report scores.
internal/report/tally.go:55
↓ 13 callers
Function
asMB
AsMB prints MB value.
internal/lint/helper.go:164
↓ 13 callers
Function
asMC
AsMC prints millicore value.
internal/lint/helper.go:159
↓ 12 callers
Method
Find
(kind types.GVR, fqn string)
internal/db/db.go:145
↓ 12 callers
Method
MaxSeverity
MaxSeverity
internal/report/writer.go:20
↓ 12 callers
Function
New
New returns a new instance.
internal/report/writer.go:47
↓ 12 callers
Method
client
()
pkg/popeye.go:397
↓ 11 callers
Function
Colorize
Colorize a string based on given color.
internal/report/color.go:41
↓ 11 callers
Method
Exists
(kind types.GVR, fqn string)
internal/db/db.go:399
↓ 11 callers
Method
For
For returns issues for a given section/group.
internal/issues/issues.go:170
↓ 11 callers
Method
G
G returns the resource group name.
types/gvr.go:137
↓ 11 callers
Method
Match
(s rules.Spec)
pkg/config/config.go:58
↓ 11 callers
Function
makeContainer
(n string, opts coOpts)
internal/lint/container_test.go:328
↓ 11 callers
Function
toMB
ToMB converts quantity to megabytes.
internal/lint/helper.go:130
↓ 11 callers
Function
toMC
ToMC converts quantity to millicores.
internal/lint/helper.go:125
↓ 10 callers
Method
List
List returns a resource collection.
internal/dao/types.go:26
↓ 10 callers
Function
Namespaced
Namespaced converts a resource path to namespace and resource name.
internal/client/helpers.go:53
↓ 10 callers
Function
NewConfig
NewConfig create a new Popeye configuration.
pkg/config/config.go:27
↓ 10 callers
Function
NewFlags
NewFlags returns new configuration flags.
pkg/config/flags.go:50
↓ 10 callers
Method
RawConfig
RawConfig fetch the current kubeconfig with no overrides.
internal/client/config.go:275
↓ 10 callers
Function
makeSecPod
(pod, init, co1, co2 nonRootUser)
internal/lint/pod_test.go:252
↓ 10 callers
Method
match
(ll Labels)
internal/rules/keyvals.go:38
↓ 9 callers
Method
Client
Client retrieves an api client.
types/types.go:135
↓ 9 callers
Function
IsBoolSet
IsBoolSet checks bool option is set
pkg/config/helpers.go:34
↓ 9 callers
Function
WithGroup
WithGroup adds a group to the context.
internal/context.go:31
↓ 9 callers
Function
isSet
---------------------------------------------------------------------------- Helpers...
internal/client/config.go:341
↓ 8 callers
Method
AddError
AddError record an error associated with the report.
internal/report/builder.go:52
↓ 8 callers
Method
AddSection
AddSection adds a linter section to the report.
internal/report/builder.go:57
↓ 8 callers
Function
NewBuilder
NewBuilder returns a new instance.
internal/report/builder.go:35
↓ 8 callers
Method
Print
Print a colorized message.
internal/report/writer.go:135
↓ 8 callers
Method
V
V returns the resource version.
types/gvr.go:122
↓ 7 callers
Method
Match
(spec Spec, global bool)
internal/rules/linters.go:48
↓ 7 callers
Method
Sort
Sort sorts issues.
internal/issues/issues.go:78
↓ 7 callers
Method
String
String returns gvr as string.
types/gvr.go:83
↓ 7 callers
Function
boolPtr
(b bool)
pkg/config/helpers.go:38
↓ 7 callers
Function
coSpecFor
(fqn string, o metav1.ObjectMetaAccessor, spec v1.PodSpec)
internal/lint/helper.go:31
↓ 7 callers
Function
dumpSel
(sel *metav1.LabelSelector)
internal/lint/np.go:245
↓ 7 callers
Method
finalize
()
internal/report/builder.go:83
↓ 6 callers
Method
Format
Format hydrates a message with arguments.
internal/rules/code.go:19
↓ 6 callers
Function
IsClusterScoped
IsClusterScoped returns true if resource is not namespaced.
internal/client/helpers.go:48
↓ 6 callers
Function
LoadCodes
LoadCodes retrieves linters codes from yaml file.
internal/issues/codes.go:22
↓ 6 callers
Function
MustExtractRunInfo
MustExtractRunInfo extracts runinfo from context or die.
internal/context.go:52
↓ 6 callers
Method
addIssue
AddIssue adds 1 or more concerns to the collector.
internal/issues/collector.go:118
↓ 6 callers
Method
dump
(indent string)
internal/rules/keyvals.go:28
↓ 6 callers
Function
newRangeCollector
(t *testing.T)
internal/lint/container_test.go:298
↓ 6 callers
Function
noPodSel
(spec *netv1.NetworkPolicySpec)
internal/lint/np_helpers.go:8
↓ 6 callers
Function
polInclude
(pp []netv1.PolicyType, d direction)
internal/lint/np_helpers.go:52
↓ 5 callers
Function
NewPod
NewPod returns a new instance.
internal/lint/pod.go:45
↓ 5 callers
Method
Open
Open begins a new report section.
internal/report/writer.go:55
↓ 5 callers
Function
ToPerc
ToPerc computes the percentage from one number over another.
internal/lint/helper.go:117
↓ 5 callers
Function
bomb
(err error)
cmd/root.go:83
↓ 5 callers
Function
checkCPU
(ctx context.Context, c CollectorLimiter, over bool, mx ConsumptionMetrics)
internal/lint/sts.go:94
↓ 5 callers
Function
checkMEM
(ctx context.Context, c CollectorLimiter, over bool, mx ConsumptionMetrics)
internal/lint/sts.go:106
↓ 5 callers
Function
containerResources
ContainerResources gathers container resources setting.
internal/lint/helper.go:194
↓ 5 callers
Function
makeConfig
(t *testing.T)
internal/issues/collector_test.go:256
↓ 5 callers
Function
pullOverAllocs
Helpers... PullOverAllocs check for over allocation setting in context.
internal/lint/dp.go:96
↓ 4 callers
Method
ActiveNamespace
ActiveNamespace returns the current namespace.
types/types.go:126
↓ 4 callers
Method
Close
Close a report section.
internal/report/writer.go:76
↓ 4 callers
Method
Compact
Compact removes zero entries.
internal/issues/tally/code.go:21
↓ 4 callers
Method
Dump
Dump writes out tally and computes length
internal/report/tally.go:107
↓ 4 callers
Function
EmojiForLevel
EmojiForLevel maps lint levels to emojis.
internal/report/emoji.go:31
↓ 4 callers
Method
Empty
()
internal/lint/pod.go:40
↓ 4 callers
Method
FindPodsBySel
(ns string, sel *metav1.LabelSelector)
internal/db/db.go:241
↓ 4 callers
Method
GVR
GVR returns a gvr a string.
internal/dao/types.go:38
↓ 4 callers
Method
Has
Has checks if an item is in the set.
internal/stringset.go:45
next →
1–100 of 1,079, ranked by callers