Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bex-co/bex
/ functions
Functions
549 in github.com/bex-co/bex
⨍
Functions
549
◇
Types & classes
84
↓ 2 callers
Function
envOr
(k, def string)
operator/cmd/api/main.go:44
↓ 2 callers
Function
getFirstFoundEnvTestBinaryDir
getFirstFoundEnvTestBinaryDir locates the first binary in the specified path. ENVTEST-based tests depend on specific binaries, usually located in path
operator/internal/controller/suite_test.go:105
↓ 2 callers
Function
getSystemTheme
()
dashboard/src/common/providers/theme-provider/utils.ts:3
↓ 2 callers
Function
ingressRouteTCPSpec
ingressRouteTCPSpec builds a Traefik IngressRouteTCP .spec routing the SNI hostname to the CNPG read-write Service, TLS-passthrough (Postgres speaks i
operator/internal/controller/database_controller.go:117
↓ 2 callers
Function
isValidTheme
(value: string | null)
dashboard/src/common/providers/theme-provider/index.tsx:12
↓ 2 callers
Method
keep
keep reports whether an entry satisfies the search/time filters. Assumes normalized() has run (searchLower populated).
operator/internal/api/logs.go:93
↓ 2 callers
Function
newFakeKeyStore
()
operator/internal/api/apikeys_test.go:35
↓ 2 callers
Function
newKeyServer
(t *testing.T)
operator/internal/api/apikeys_test.go:60
↓ 2 callers
Function
newOryAuth
(hydraAdminURL, kratosURL string)
operator/internal/api/auth.go:103
↓ 2 callers
Function
normalizeIdent
normalizeIdent turns an App/DB name into a valid unquoted PostgreSQL identifier: lowercase, hyphens -> underscores. So a client never has to double-qu
operator/internal/controller/database_controller.go:73
↓ 2 callers
Method
normalized
normalized clamps Limit to Render's paging range and precomputes searchLower so keep() doesn't re-lower the constant search term for every line.
operator/internal/api/logs.go:74
↓ 2 callers
Function
parseLogLine
parseLogLine splits kubelet's "Timestamps: true" prefix (an RFC3339Nano stamp, a space, then the message) off a log line, tagging it with Render-shape
operator/internal/api/core.go:260
↓ 2 callers
Function
parseLogParams
parseLogParams maps Render's logs query string onto resources + a LogQuery. resource is required (repeatable, the App id); type is repeatable (app/app
operator/internal/api/rest_logs.go:117
↓ 2 callers
Function
parsePodMetrics
parsePodMetrics decodes a metrics-server PodMetricsList and sums each pod's container usage into cores + bytes. Unparseable quantities are treated as
operator/internal/api/metricsource.go:84
↓ 2 callers
Function
parsePromMatrix
parsePromMatrix maps a Prometheus matrix response onto Core MetricSeries: one series per result (labels = its metric labels), points RFC3339-stamped a
operator/internal/api/metricsource.go:250
↓ 2 callers
Function
pgIdent
pgIdent mirrors the operator's normalizeIdent: a valid unquoted PostgreSQL identifier (lowercase, hyphens -> underscores). Kept in sync with internal/
operator/internal/api/postgres.go:82
↓ 2 callers
Function
seedDatabase
--- managed Postgres (Render-shaped /v1/postgres) --- seedDatabase adds a Ready public Database + its CNPG-style "<name>-app" Secret.
operator/internal/api/api_test.go:250
↓ 2 callers
Function
stepSeconds
(res time.Duration)
operator/internal/api/metricsource.go:148
↓ 2 callers
Function
sumRate
(metric, matchers, window, by string)
operator/internal/api/metricsource.go:190
↓ 2 callers
Function
toRenderLog
(e LogEntry)
operator/internal/api/render.go:156
↓ 2 callers
Function
toRenderMetricSeries
(s MetricSeries)
operator/internal/api/render.go:213
↓ 2 callers
Function
unauthorized
(w http.ResponseWriter)
operator/internal/api/auth.go:265
↓ 2 callers
Function
useRootContext
()
dashboard/src/common/hooks/use-root-context.ts:3
↓ 2 callers
Function
warnError
(err error)
operator/test/utils/utils.go:38
↓ 1 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.
operator/api/v1alpha1/zz_generated.deepcopy.go:70
↓ 1 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
operator/api/v1alpha1/zz_generated.deepcopy.go:144
↓ 1 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseList.
operator/api/v1alpha1/zz_generated.deepcopy.go:176
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:56
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:88
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:108
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:135
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:162
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:194
↓ 1 callers
Method
DeepCopyInto
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
operator/api/v1alpha1/zz_generated.deepcopy.go:209
↓ 1 callers
Method
FollowLogs
FollowLogs streams an App's new log lines to emit until ctx is cancelled or emit errors. The same type/text filters as QueryLogs apply. Requires a Pod
operator/internal/api/logs.go:155
↓ 1 callers
Function
GetNonEmptyLines
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
operator/test/utils/utils.go:154
↓ 1 callers
Function
GetProjectDir
GetProjectDir will return the directory where the project is
operator/test/utils/utils.go:167
↓ 1 callers
Function
IdentityFrom
IdentityFrom returns the authenticated Identity the auth middleware attached to the request context.
operator/internal/api/auth.go:52
↓ 1 callers
Function
NewHydraAPIKeys
NewHydraAPIKeys returns the production APIKeyStore talking to Hydra's cluster-internal admin API.
operator/internal/api/apikeys.go:88
↓ 1 callers
Function
NewPrometheusRequestSource
--- Request metrics: Traefik scraped by Prometheus --- NewPrometheusRequestSource returns the production RequestMetricsSource, backed by a Prometheus
operator/internal/api/metricsource.go:113
↓ 1 callers
Method
Pause
(ctx context.Context, id string)
operator/internal/runtime/opensandbox.go:187
↓ 1 callers
Method
Resume
Resume brings a suspended App back (spec.suspended = false); the operator restores spec.replicas.
operator/internal/api/core.go:197
↓ 1 callers
Method
RunStdio
RunStdio serves the MCP adapter over stdio (newline-delimited JSON on stdin/stdout) — the transport a local agent launches bex as a subprocess with. H
operator/internal/api/mcp.go:253
↓ 1 callers
Function
bearerToken
bearerToken extracts the RFC 6750 credential from the Authorization header; ok is false when the header is absent or not "Bearer "-prefixed.
operator/internal/api/auth.go:34
↓ 1 callers
Function
brokenServer
brokenServer always returns 500 — the "Ory is up but failing" case.
operator/internal/api/auth_test.go:82
↓ 1 callers
Function
callback
()
dashboard/src/common/hooks/__tests__/use-on-mounted.test.ts:37
↓ 1 callers
Function
codeMatcher
codeMatcher turns a Render statusCode filter into a Prometheus `code` regex: "2xx"/"5xx" => "2.."/"5..", a bare code ("500") stays literal, "" => no f
operator/internal/api/metricsource.go:199
↓ 1 callers
Function
configureKubectlKubeRC
Disable kubectl kuberc by default for test isolation. This prevents local kubectl configurations from affecting test behavior. To enable kuberc, set:
operator/test/e2e/e2e_suite_test.go:76
↓ 1 callers
Function
createApolloCsrClientImpl
Create an Apollo client for client-side rendering.
dashboard/src/common/apollo/factory.client.ts:7
↓ 1 callers
Function
dbStatus
dbStatus maps bex's Database phase onto Render's databaseStatus enum.
operator/internal/api/postgres.go:85
↓ 1 callers
Function
deadServer
deadServer returns a URL nothing listens on — the "Ory is unreachable" case.
operator/internal/api/auth_test.go:92
↓ 1 callers
Function
fakeHydraAdmin
fakeHydraAdmin fakes the client-management slice of Hydra's admin API for the production store implementation.
operator/internal/api/apikeys_test.go:177
↓ 1 callers
Function
fakeKratos
fakeKratos serves GET /sessions/whoami: session token "live-session" or a cookie containing ory_kratos_session=live is a valid session for identity "i
operator/internal/api/auth_test.go:61
↓ 1 callers
Function
fetchSession
()
dashboard/src/common/server-fn/session.ts:4
↓ 1 callers
Function
getMetricsOutput
getMetricsOutput retrieves and returns the logs from the curl pod used to access the metrics endpoint.
operator/test/e2e/e2e_test.go:327
↓ 1 callers
Function
getThemeFromQuery
()
dashboard/src/common/providers/theme-provider/index.tsx:16
↓ 1 callers
Function
getThemeFromStorage
(storageKey: string)
dashboard/src/common/providers/theme-provider/index.tsx:26
↓ 1 callers
Method
graphqlHandler
graphqlHandler serves POST /graphql, injecting the Core per request so the compiled schema is reused.
operator/internal/api/graphql.go:384
↓ 1 callers
Function
handleSelect
(selectedValue: string)
dashboard/src/common/components/ui/combobox.tsx:72
↓ 1 callers
Method
hasFilters
hasFilters reports whether any line-level filter (search/time) is set; type scoping is handled at the source level in QueryLogs.
operator/internal/api/logs.go:87
↓ 1 callers
Function
hasSessionCredential
hasSessionCredential reports whether the request carries something worth a Kratos round trip: the session header, or Kratos' session cookie. An unrela
operator/internal/api/auth.go:140
↓ 1 callers
Function
imageEntrypoint
imageEntrypoint derives the entrypoint OpenSandbox requires from the built image (CNB → ["/cnb/process/web"]; Dockerfile → its ENTRYPOINT+CMD).
operator/internal/runtime/opensandbox.go:88
↓ 1 callers
Method
instanceCountMetric
instanceCountMetric returns a single-series current replica count (running pods). It needs no metrics source — it counts the App's pods directly — so
operator/internal/api/metrics.go:238
↓ 1 callers
Method
introspect
introspect validates an OAuth2 token at Hydra's admin API. Returns the zero Identity for an inactive/unknown token, an error when Hydra is unreachable
operator/internal/api/auth.go:150
↓ 1 callers
Method
introspectUpstream
(ctx context.Context, token string)
operator/internal/api/auth.go:171
↓ 1 callers
Function
isValidDate
(date: Date | undefined)
dashboard/src/common/components/ui/date-picker.tsx:36
↓ 1 callers
Function
load
()
dashboard/src/common/hooks/use-ory-flow.ts:43
↓ 1 callers
Function
logID
logID synthesizes a stable, unique id (Render ids are opaque; bex derives one from instance + timestamp + a message hash so the same line is always th
operator/internal/api/render.go:150
↓ 1 callers
Function
logQueryFromArgs
logQueryFromArgs maps the GraphQL logs() args onto a Core LogQuery, accepting the same `app` alias for the application type as the REST adapter.
operator/internal/api/graphql.go:133
↓ 1 callers
Method
mcpHTTPHandler
mcpHTTPHandler serves the MCP streamable-HTTP transport. Mounted at /mcp behind the same auth gate as REST/GraphQL (see Handler), so an HTTP MCP clien
operator/internal/api/mcp.go:243
↓ 1 callers
Function
mcpStdio
mcpStdio reports whether the binary should run as a stdio MCP server rather than the HTTP service: subcommand `mcp-stdio` or BEX_MCP_STDIO=1.
operator/cmd/api/main.go:127
↓ 1 callers
Method
metricQuery
metricQuery serves one Render metrics endpoint. Render's `resource` is an array (repeatable) of service ids; bex merges each App's series into one res
operator/internal/api/rest_metrics.go:57
↓ 1 callers
Function
metricQueryFromArgs
metricQueryFromArgs maps the GraphQL metrics() args onto a Core MetricQuery, accepting the same vocabulary as the REST adapter.
operator/internal/api/graphql.go:199
↓ 1 callers
Method
middleware
(next http.Handler)
operator/internal/api/auth.go:112
↓ 1 callers
Function
newPromStub
newPromStub is an httptest Prometheus that records the `query` param and returns a one-series matrix (a single sample of value 7).
operator/internal/api/metrics_test.go:398
↓ 1 callers
Function
newSchema
newSchema builds the schema once; the Core is injected per-request via context.
operator/internal/api/graphql.go:236
↓ 1 callers
Method
normalized
(now time.Time)
operator/internal/api/metrics.go:104
↓ 1 callers
Function
parseMetricParams
parseMetricParams maps Render's metrics query string onto resources + a MetricQuery. resource is required (repeatable, the App id); startTime/endTime
operator/internal/api/rest_metrics.go:84
↓ 1 callers
Function
performLogout
()
dashboard/src/features/auth/pages/logout-page/index.tsx:18
↓ 1 callers
Function
phaseVariant
(phase: string)
dashboard/src/routes/index.tsx:47
↓ 1 callers
Function
podResourceLimits
podResourceLimits reads each pod's CPU (cores) or memory (bytes) limit, summed across containers, keyed by pod name. A pod with no limit on the metric
operator/internal/api/metrics.go:314
↓ 1 callers
Function
promEscape
promEscape escapes regex metacharacters in an App name used inside a =~ matcher.
operator/internal/api/metricsource.go:224
↓ 1 callers
Method
readPodLogs
(ctx context.Context, service, pod string, tail int64)
operator/internal/api/core.go:241
↓ 1 callers
Method
reconcileKubernetes
reconcileKubernetes runs the revision as a Deployment (+ ClusterIP k8s Service) owned by the App — pods are scheduled onto the cluster's nodes (machin
operator/internal/controller/app_controller.go:184
↓ 1 callers
Method
reconcileOpenSandbox
reconcileOpenSandbox runs the revision as an OpenSandbox sandbox (host runtime).
operator/internal/controller/app_controller.go:336
↓ 1 callers
Method
registerAPIKeyRoutes
registerAPIKeyRoutes adds the machine-credential endpoints (bex extension — Render manages API keys only via its dashboard; naming follows Render's ke
operator/internal/api/rest.go:82
↓ 1 callers
Method
registerLogRoutes
rest_logs.go is the REST logs adapter — Render logs-API compatible. It maps the query string (resource/type/text/startTime/endTime/limit) and the {has
operator/internal/api/rest_logs.go:34
↓ 1 callers
Method
registerMetricRoutes
(mux *http.ServeMux)
operator/internal/api/rest_metrics.go:46
↓ 1 callers
Method
registerPostgresRoutes
registerPostgresRoutes adds the managed-Postgres endpoints, Render-shaped (/v1/postgres) plus a bex-native /v1/databases alias.
operator/internal/api/rest.go:117
↓ 1 callers
Function
renderHomePage
()
dashboard/src/routes/__tests__/index.test.tsx:12
↓ 1 callers
Method
requestMetric
requestMetric delegates to the injected request-metrics source, resolving the query into the backend-neutral RequestMetricsRequest. The unit is set he
operator/internal/api/metrics.go:259
↓ 1 callers
Function
requestUnit
(metric string)
operator/internal/api/metrics.go:288
↓ 1 callers
Method
resourceMetric
resourceMetric returns one current series per replica (labels instance + resource) of CPU or memory usage. With Percentage set, each value is divided
operator/internal/api/metrics.go:184
↓ 1 callers
Function
resourcesForTier
(tier string)
operator/internal/controller/app_controller.go:168
↓ 1 callers
Method
restHandler
restHandler is the REST adapter — Render-public-API compatible. Paths, the {service, cursor} list envelope, the string suspended enum, and the verb st
operator/internal/api/rest.go:32
↓ 1 callers
Function
serviceAccountToken
serviceAccountToken returns a token for the specified service account in the given namespace. It uses the Kubernetes TokenRequest API to generate a to
operator/test/e2e/e2e_test.go:288
↓ 1 callers
Function
setupCertManager
setupCertManager installs CertManager if needed for webhook tests. Skips installation if CERT_MANAGER_INSTALL_SKIP=true or if already present.
operator/test/e2e/e2e_suite_test.go:90
↓ 1 callers
Function
staticLogStream
staticLogStream is the PodLogStream sibling of staticLogs (mcp_test.go): it serves each pod's canned lines then EOF, so FollowLogs ends and the SSE re
operator/internal/api/logs_test.go:36
↓ 1 callers
Method
streamPodLogs
streamPodLogs follows one pod's log into ch until ctx ends or the stream closes. A replica going away ends its stream without failing the subscription
operator/internal/api/logs.go:208
↓ 1 callers
Function
suspendedEnum
(b bool)
operator/internal/api/graphql.go:65
← previous
next →
101–200 of 549, ranked by callers