MCPcopy Create free account

hub / github.com/derailed/popeye / functions

Functions1,079 in github.com/derailed/popeye

↓ 4 callersMethodInit
Init the resource with a factory object.
internal/dao/types.go:35
↓ 4 callersFunctionIsAllNamespace
IsAllNamespace returns true if ns == all.
internal/client/helpers.go:33
↓ 4 callersFunctionMakeConfig
(t *testing.T)
internal/test/helpers.go:145
↓ 4 callersFunctionMatchSelector
Helpers... MatchSelector check if pod labels match a selector.
internal/db/db.go:331
↓ 4 callersFunctionNewDeltaScore
NewDeltaScore returns a new delta score.
internal/report/delta_score.go:22
↓ 4 callersFunctionNewPod
NewPod returns a Pod cache.
internal/cache/pod.go:22
↓ 4 callersFunctionNewService
NewService returns a new instance.
internal/lint/svc.go:26
↓ 4 callersMethodNodeCPULimit
NodeCPULimit returns the node cpu threshold if set otherwise the default.
pkg/config/config.go:98
↓ 4 callersMethodNodeMEMLimit
NodeMEMLimit returns the pod mem threshold if set otherwise the default.
pkg/config/config.go:134
↓ 4 callersMethodOutputFormat
OutputFormat returns the report output format.
pkg/config/flags.go:98
↓ 4 callersMethodPodRefs
PodRefs computes all pods external references.
internal/cache/pod.go:27
↓ 4 callersMethodRestConfig
RestConfig returns a rest api client.
internal/client/client.go:283
↓ 4 callersFunctionSanitizeFileName
SanitizeFileName ensure file spec is valid.
pkg/config/helpers.go:24
↓ 4 callersMethodServerVersion
ServerVersion returns current server version.
types/types.go:114
↓ 4 callersFunctionaddKeys
---------------------------------------------------------------------------- Helpers...
internal/cache/pod.go:145
↓ 4 callersFunctionasPerc
AsPec prints value as percentage.
internal/lint/helper.go:135
↓ 4 callersMethodcheckImageTags
(ctx context.Context, image string)
internal/lint/container.go:55
↓ 4 callersMethodisLoaded
(gvr types.GVR)
internal/db/loader.go:41
↓ 4 callersFunctionmustExtractFactory
Helpers...
internal/db/loader.go:231
↓ 4 callersFunctionnamespaced
Namespaced pull namespace and name out of an fqn.
internal/lint/helper.go:107
↓ 4 callersFunctionportFQN
(p v1.Protocol, port string)
internal/lint/svc.go:172
↓ 4 callersFunctionprintTuple
(section, value string)
cmd/version.go:36
↓ 4 callersMethodsetLoaded
(gvr types.GVR)
internal/db/loader.go:50
↓ 4 callersFunctiontoMCRatio
ToMCRatio computes millicore ratio.
internal/lint/helper.go:140
↓ 4 callersFunctiontoMEMRatio
ToMEMRatio computes mem MB ratio.
internal/lint/helper.go:149
↓ 4 callersMethodwrite
Write a colorized message to stdout.
internal/report/writer.go:140
↓ 3 callersMethodActiveCluster
ActiveCluster returns the current cluster name.
types/types.go:123
↓ 3 callersMethodCanForResource
CanForResource return an informer is user has access.
internal/client/factory.go:187
↓ 3 callersMethodClone
Clone returns a new copy.
internal/stringset.go:36
↓ 3 callersMethodClusterRoleRefs
ClusterRoleRefs computes all clusterrole external references.
internal/cache/crb.go:27
↓ 3 callersMethodDescription
()
internal/report/writer.go:22
↓ 3 callersMethodDial
Dial returns a handle to api server or an error
internal/client/client.go:265
↓ 3 callersMethodDiff
Diff computes B-A.
internal/stringset.go:52
↓ 3 callersMethodFindPMX
(fqn string)
internal/db/db.go:82
↓ 3 callersMethodGV
GV returns the group version scheme representation.
types/gvr.go:88
↓ 3 callersMethodGetNamespace
()
internal/db/schema/indexer.go:15
↓ 3 callersMethodGroup
Group collect issues as groups.
internal/issues/issues.go:94
↓ 3 callersMethodHasMetrics
()
internal/lint/cluster.go:29
↓ 3 callersFunctionIsClusterWide
IsClusterWide returns true if ns designates cluster scope, false otherwise.
internal/client/helpers.go:19
↓ 3 callersMethodLint
Lint cleanse the resource..
internal/lint/pod.go:53
↓ 3 callersFunctionMatchLabels
MatchLabels check if pod labels match a selector.
internal/db/db.go:384
↓ 3 callersMethodMerge
Merge merges two sets.
internal/issues/tally/code.go:45
↓ 3 callersMethodMustITForNS
(gvr types.GVR, ns string)
internal/db/db.go:46
↓ 3 callersFunctionNewClusterRole
NewClusterRole returns a new instance.
internal/lint/cr.go:43
↓ 3 callersFunctionNewClusterRoleBinding
NewClusterRoleBinding returns a new ClusterRoleBinding cache.
internal/cache/crb.go:22
↓ 3 callersFunctionNewNetworkPolicy
NewNetworkPolicy returns a new instance.
internal/lint/np.go:41
↓ 3 callersFunctionNewRoleBinding
NewRoleBinding returns a new RoleBinding cache.
internal/cache/rb.go:25
↓ 3 callersFunctionNewServiceAccount
NewServiceAccount returns a new serviceaccount loader.
internal/cache/sa.go:21
↓ 3 callersFunctionNewValidator
NewValidator returns a new instance.
pkg/config/json/validator.go:33
↓ 3 callersFunctionParseVersion
ParseVersion renders cluster info version into semver rev.
internal/dag/helpers.go:19
↓ 3 callersMethodPodCPULimit
PodCPULimit returns the pod cpu threshold if set otherwise the default.
pkg/config/config.go:107
↓ 3 callersMethodPodMEMLimit
PodMEMLimit returns the pod mem threshold if set otherwise the default.
pkg/config/config.go:125
↓ 3 callersMethodRoleRefs
RoleRefs computes all role external references.
internal/cache/rb.go:30
↓ 3 callersMethodScore
Score returns the tally computed score.
internal/report/tally.go:35
↓ 3 callersMethodSections
Sections tracks a collection of internal.
pkg/config/config.go:79
↓ 3 callersMethodServiceAccountRefs
ServiceAccountRefs computes all serviceaccount external references.
internal/cache/sa.go:26
↓ 3 callersFunctionTitleize
---------------------------------------------------------------------------- Helpers... Titleize renders a section title.
internal/report/builder.go:248
↓ 3 callersMethodValidate
()
pkg/config/flags.go:72
↓ 3 callersMethodWaitForCacheSync
WaitForCacheSync synchronize the cache.
types/types.go:150
↓ 3 callersMethodcheckEPSel
(ns string, sel api.EndpointSelector)
internal/cilium/lint/cnp.go:90
↓ 3 callersMethodcheckEPSel
(sel api.EndpointSelector)
internal/cilium/lint/ccnp.go:94
↓ 3 callersMethodclusterPath
()
pkg/popeye.go:164
↓ 3 callersMethodcodec
()
internal/dao/table.go:98
↓ 3 callersFunctioncolorForLevel
(l rules.Level)
internal/report/color.go:45
↓ 3 callersFunctionisBoolSet
(b *bool)
internal/lint/pod.go:482
↓ 3 callersFunctionlabelsMatch
(sel *metav1.LabelSelector, ll map[string]string)
internal/lint/pod.go:237
↓ 3 callersFunctionmakeContext
Helpers...
internal/issues/collector_test.go:248
↓ 3 callersFunctionmakeSecCO
(name string, level nonRootUser)
internal/lint/pod_test.go:237
↓ 3 callersFunctionmatchSelector
(ns string, ll []string, s api.EndpointSelector)
internal/cilium/lint/cnp.go:126
↓ 3 callersFunctionnewContainerStatus
(c Collector, fqn string, count int, isInit bool, restarts int)
internal/lint/container_status.go:29
↓ 3 callersFunctionpodResources
PodResources computes pod resources as sum of containers allocations.
internal/lint/helper.go:169
↓ 3 callersFunctionresourceUsage
(ctx context.Context, dba *db.DB, c Collector, ns string, sel *metav1.LabelSelector)
internal/lint/helper.go:65
↓ 3 callersMethodscanFileName
()
pkg/popeye.go:524
↓ 3 callersMethodskip
(fqn string)
internal/lint/cr.go:21
↓ 2 callersMethodActiveContext
ActiveContext returns the current context name.
types/types.go:120
↓ 2 callersMethodActiveNamespace
ActiveNamespace returns the current namespace.
internal/client/client.go:130
↓ 2 callersMethodAddCode
AddCode add an error code.
internal/issues/collector.go:80
↓ 2 callersMethodAddSubCode
AddSubCode add a sub error code.
internal/issues/collector.go:63
↓ 2 callersMethodAggregationMatchers
RoleRefs computes all role external references.
internal/cache/cr.go:25
↓ 2 callersMethodAllowedRegistries
()
internal/lint/types.go:45
↓ 2 callersMethodBadge
Badge returns a popeye grade.
internal/report/grade.go:27
↓ 2 callersFunctionBailOut
(err error)
pkg/helpers.go:20
↓ 2 callersMethodCPUResourceLimits
CPUResourceLimits returns the CPU utilization threshold.
internal/lint/types.go:56
↓ 2 callersMethodCachedDiscovery
CachedDiscovery returns a cached discovery client.
internal/client/client.go:293
↓ 2 callersMethodCanI
CanI returns true if the user can use these actions for a given resource.
types/types.go:61
↓ 2 callersMethodClose
Close close read stream.
pkg/helpers.go:81
↓ 2 callersMethodComment
Comment writes a comment line.
internal/report/writer.go:101
↓ 2 callersMethodConfigAccess
ConfigAccess return the current kubeconfig api server access configuration.
internal/client/config.go:266
↓ 2 callersMethodContextNames
ContextNames fetch all available contexts.
internal/client/config.go:118
↓ 2 callersMethodCurrentNamespaceName
CurrentNamespaceName returns the current context namespace.
types/types.go:67
↓ 2 callersMethodDo
Do implements the HTTPDoer interface to replace the standard http client push request and write to the outputTarget
pkg/popeye.go:381
↓ 2 callersMethodDynDial
DynDial connects to dynamic client.
types/types.go:108
↓ 2 callersMethodExhaust
()
pkg/config/flags.go:106
↓ 2 callersMethodFindJobs
(fqn string)
internal/db/db.go:190
↓ 2 callersMethodForResource
ForResource fetch an informer for a given resource.
types/types.go:144
↓ 2 callersMethodGetName
()
internal/db/schema/indexer.go:16
↓ 2 callersFunctionGrade
Grade returns a run report grade based on score.
internal/report/grade.go:9
↓ 2 callersMethodHasSynced
HasSynced checks if given informer is up to date.
internal/client/factory.go:95
↓ 2 callersMethodITFor
(gvr types.GVR)
internal/db/db.go:32
↓ 2 callersMethodIngressRefs
IngressRefs computes all ingress external references.
internal/cache/ing.go:29
← previousnext →101–200 of 1,079, ranked by callers