Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derailed/popeye
/ functions
Functions
1,079 in github.com/derailed/popeye
⨍
Functions
1,079
◇
Types & classes
204
↓ 4 callers
Method
Init
Init the resource with a factory object.
internal/dao/types.go:35
↓ 4 callers
Function
IsAllNamespace
IsAllNamespace returns true if ns == all.
internal/client/helpers.go:33
↓ 4 callers
Function
MakeConfig
(t *testing.T)
internal/test/helpers.go:145
↓ 4 callers
Function
MatchSelector
Helpers... MatchSelector check if pod labels match a selector.
internal/db/db.go:331
↓ 4 callers
Function
NewDeltaScore
NewDeltaScore returns a new delta score.
internal/report/delta_score.go:22
↓ 4 callers
Function
NewPod
NewPod returns a Pod cache.
internal/cache/pod.go:22
↓ 4 callers
Function
NewService
NewService returns a new instance.
internal/lint/svc.go:26
↓ 4 callers
Method
NodeCPULimit
NodeCPULimit returns the node cpu threshold if set otherwise the default.
pkg/config/config.go:98
↓ 4 callers
Method
NodeMEMLimit
NodeMEMLimit returns the pod mem threshold if set otherwise the default.
pkg/config/config.go:134
↓ 4 callers
Method
OutputFormat
OutputFormat returns the report output format.
pkg/config/flags.go:98
↓ 4 callers
Method
PodRefs
PodRefs computes all pods external references.
internal/cache/pod.go:27
↓ 4 callers
Method
RestConfig
RestConfig returns a rest api client.
internal/client/client.go:283
↓ 4 callers
Function
SanitizeFileName
SanitizeFileName ensure file spec is valid.
pkg/config/helpers.go:24
↓ 4 callers
Method
ServerVersion
ServerVersion returns current server version.
types/types.go:114
↓ 4 callers
Function
addKeys
---------------------------------------------------------------------------- Helpers...
internal/cache/pod.go:145
↓ 4 callers
Function
asPerc
AsPec prints value as percentage.
internal/lint/helper.go:135
↓ 4 callers
Method
checkImageTags
(ctx context.Context, image string)
internal/lint/container.go:55
↓ 4 callers
Method
isLoaded
(gvr types.GVR)
internal/db/loader.go:41
↓ 4 callers
Function
mustExtractFactory
Helpers...
internal/db/loader.go:231
↓ 4 callers
Function
namespaced
Namespaced pull namespace and name out of an fqn.
internal/lint/helper.go:107
↓ 4 callers
Function
portFQN
(p v1.Protocol, port string)
internal/lint/svc.go:172
↓ 4 callers
Function
printTuple
(section, value string)
cmd/version.go:36
↓ 4 callers
Method
setLoaded
(gvr types.GVR)
internal/db/loader.go:50
↓ 4 callers
Function
toMCRatio
ToMCRatio computes millicore ratio.
internal/lint/helper.go:140
↓ 4 callers
Function
toMEMRatio
ToMEMRatio computes mem MB ratio.
internal/lint/helper.go:149
↓ 4 callers
Method
write
Write a colorized message to stdout.
internal/report/writer.go:140
↓ 3 callers
Method
ActiveCluster
ActiveCluster returns the current cluster name.
types/types.go:123
↓ 3 callers
Method
CanForResource
CanForResource return an informer is user has access.
internal/client/factory.go:187
↓ 3 callers
Method
Clone
Clone returns a new copy.
internal/stringset.go:36
↓ 3 callers
Method
ClusterRoleRefs
ClusterRoleRefs computes all clusterrole external references.
internal/cache/crb.go:27
↓ 3 callers
Method
Description
()
internal/report/writer.go:22
↓ 3 callers
Method
Dial
Dial returns a handle to api server or an error
internal/client/client.go:265
↓ 3 callers
Method
Diff
Diff computes B-A.
internal/stringset.go:52
↓ 3 callers
Method
FindPMX
(fqn string)
internal/db/db.go:82
↓ 3 callers
Method
GV
GV returns the group version scheme representation.
types/gvr.go:88
↓ 3 callers
Method
GetNamespace
()
internal/db/schema/indexer.go:15
↓ 3 callers
Method
Group
Group collect issues as groups.
internal/issues/issues.go:94
↓ 3 callers
Method
HasMetrics
()
internal/lint/cluster.go:29
↓ 3 callers
Function
IsClusterWide
IsClusterWide returns true if ns designates cluster scope, false otherwise.
internal/client/helpers.go:19
↓ 3 callers
Method
Lint
Lint cleanse the resource..
internal/lint/pod.go:53
↓ 3 callers
Function
MatchLabels
MatchLabels check if pod labels match a selector.
internal/db/db.go:384
↓ 3 callers
Method
Merge
Merge merges two sets.
internal/issues/tally/code.go:45
↓ 3 callers
Method
MustITForNS
(gvr types.GVR, ns string)
internal/db/db.go:46
↓ 3 callers
Function
NewClusterRole
NewClusterRole returns a new instance.
internal/lint/cr.go:43
↓ 3 callers
Function
NewClusterRoleBinding
NewClusterRoleBinding returns a new ClusterRoleBinding cache.
internal/cache/crb.go:22
↓ 3 callers
Function
NewNetworkPolicy
NewNetworkPolicy returns a new instance.
internal/lint/np.go:41
↓ 3 callers
Function
NewRoleBinding
NewRoleBinding returns a new RoleBinding cache.
internal/cache/rb.go:25
↓ 3 callers
Function
NewServiceAccount
NewServiceAccount returns a new serviceaccount loader.
internal/cache/sa.go:21
↓ 3 callers
Function
NewValidator
NewValidator returns a new instance.
pkg/config/json/validator.go:33
↓ 3 callers
Function
ParseVersion
ParseVersion renders cluster info version into semver rev.
internal/dag/helpers.go:19
↓ 3 callers
Method
PodCPULimit
PodCPULimit returns the pod cpu threshold if set otherwise the default.
pkg/config/config.go:107
↓ 3 callers
Method
PodMEMLimit
PodMEMLimit returns the pod mem threshold if set otherwise the default.
pkg/config/config.go:125
↓ 3 callers
Method
RoleRefs
RoleRefs computes all role external references.
internal/cache/rb.go:30
↓ 3 callers
Method
Score
Score returns the tally computed score.
internal/report/tally.go:35
↓ 3 callers
Method
Sections
Sections tracks a collection of internal.
pkg/config/config.go:79
↓ 3 callers
Method
ServiceAccountRefs
ServiceAccountRefs computes all serviceaccount external references.
internal/cache/sa.go:26
↓ 3 callers
Function
Titleize
---------------------------------------------------------------------------- Helpers... Titleize renders a section title.
internal/report/builder.go:248
↓ 3 callers
Method
Validate
()
pkg/config/flags.go:72
↓ 3 callers
Method
WaitForCacheSync
WaitForCacheSync synchronize the cache.
types/types.go:150
↓ 3 callers
Method
checkEPSel
(ns string, sel api.EndpointSelector)
internal/cilium/lint/cnp.go:90
↓ 3 callers
Method
checkEPSel
(sel api.EndpointSelector)
internal/cilium/lint/ccnp.go:94
↓ 3 callers
Method
clusterPath
()
pkg/popeye.go:164
↓ 3 callers
Method
codec
()
internal/dao/table.go:98
↓ 3 callers
Function
colorForLevel
(l rules.Level)
internal/report/color.go:45
↓ 3 callers
Function
isBoolSet
(b *bool)
internal/lint/pod.go:482
↓ 3 callers
Function
labelsMatch
(sel *metav1.LabelSelector, ll map[string]string)
internal/lint/pod.go:237
↓ 3 callers
Function
makeContext
Helpers...
internal/issues/collector_test.go:248
↓ 3 callers
Function
makeSecCO
(name string, level nonRootUser)
internal/lint/pod_test.go:237
↓ 3 callers
Function
matchSelector
(ns string, ll []string, s api.EndpointSelector)
internal/cilium/lint/cnp.go:126
↓ 3 callers
Function
newContainerStatus
(c Collector, fqn string, count int, isInit bool, restarts int)
internal/lint/container_status.go:29
↓ 3 callers
Function
podResources
PodResources computes pod resources as sum of containers allocations.
internal/lint/helper.go:169
↓ 3 callers
Function
resourceUsage
(ctx context.Context, dba *db.DB, c Collector, ns string, sel *metav1.LabelSelector)
internal/lint/helper.go:65
↓ 3 callers
Method
scanFileName
()
pkg/popeye.go:524
↓ 3 callers
Method
skip
(fqn string)
internal/lint/cr.go:21
↓ 2 callers
Method
ActiveContext
ActiveContext returns the current context name.
types/types.go:120
↓ 2 callers
Method
ActiveNamespace
ActiveNamespace returns the current namespace.
internal/client/client.go:130
↓ 2 callers
Method
AddCode
AddCode add an error code.
internal/issues/collector.go:80
↓ 2 callers
Method
AddSubCode
AddSubCode add a sub error code.
internal/issues/collector.go:63
↓ 2 callers
Method
AggregationMatchers
RoleRefs computes all role external references.
internal/cache/cr.go:25
↓ 2 callers
Method
AllowedRegistries
()
internal/lint/types.go:45
↓ 2 callers
Method
Badge
Badge returns a popeye grade.
internal/report/grade.go:27
↓ 2 callers
Function
BailOut
(err error)
pkg/helpers.go:20
↓ 2 callers
Method
CPUResourceLimits
CPUResourceLimits returns the CPU utilization threshold.
internal/lint/types.go:56
↓ 2 callers
Method
CachedDiscovery
CachedDiscovery returns a cached discovery client.
internal/client/client.go:293
↓ 2 callers
Method
CanI
CanI returns true if the user can use these actions for a given resource.
types/types.go:61
↓ 2 callers
Method
Close
Close close read stream.
pkg/helpers.go:81
↓ 2 callers
Method
Comment
Comment writes a comment line.
internal/report/writer.go:101
↓ 2 callers
Method
ConfigAccess
ConfigAccess return the current kubeconfig api server access configuration.
internal/client/config.go:266
↓ 2 callers
Method
ContextNames
ContextNames fetch all available contexts.
internal/client/config.go:118
↓ 2 callers
Method
CurrentNamespaceName
CurrentNamespaceName returns the current context namespace.
types/types.go:67
↓ 2 callers
Method
Do
Do implements the HTTPDoer interface to replace the standard http client push request and write to the outputTarget
pkg/popeye.go:381
↓ 2 callers
Method
DynDial
DynDial connects to dynamic client.
types/types.go:108
↓ 2 callers
Method
Exhaust
()
pkg/config/flags.go:106
↓ 2 callers
Method
FindJobs
(fqn string)
internal/db/db.go:190
↓ 2 callers
Method
ForResource
ForResource fetch an informer for a given resource.
types/types.go:144
↓ 2 callers
Method
GetName
()
internal/db/schema/indexer.go:16
↓ 2 callers
Function
Grade
Grade returns a run report grade based on score.
internal/report/grade.go:9
↓ 2 callers
Method
HasSynced
HasSynced checks if given informer is up to date.
internal/client/factory.go:95
↓ 2 callers
Method
ITFor
(gvr types.GVR)
internal/db/db.go:32
↓ 2 callers
Method
IngressRefs
IngressRefs computes all ingress external references.
internal/cache/ing.go:29
← previous
next →
101–200 of 1,079, ranked by callers