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
↓ 189 callers
Function
cn
(...inputs: ClassValue[])
dashboard/src/common/lib/utils/utils.ts:14
↓ 50 callers
Function
do
(t *testing.T, h http.Handler, method, path, token, body string)
operator/internal/api/api_test.go:76
↓ 47 callers
Method
Get
Get returns one App, or ErrNotFound.
operator/internal/api/core.go:174
↓ 35 callers
Function
gqlField
graphql.go is the GraphQL adapter, matching the operation names Render's dashboard uses (captured live): query server(id) / services; mutations suspen
operator/internal/api/graphql.go:37
↓ 29 callers
Method
Error
()
operator/internal/api/server.go:87
↓ 27 callers
Function
sampleApp
(name string)
operator/internal/api/api_test.go:68
↓ 19 callers
Function
useLocalStorageState
( key: string, defaultValue: T, options: UseLocalStorageStateOptions<T> = {}, )
dashboard/src/common/hooks/use-local-storage-state.ts:62
↓ 18 callers
Function
decode
(t *testing.T, w *httptest.ResponseRecorder, v any)
operator/internal/api/api_test.go:369
↓ 18 callers
Function
formatDateISO
( dateString: string | null | undefined, )
dashboard/src/common/lib/format/format-date-iso.ts:8
↓ 18 callers
Function
sleep
(ms: number)
dashboard/src/common/lib/utils/time.ts:8
↓ 17 callers
Function
base64Encode
(str: string)
dashboard/src/common/lib/utils/encode.ts:36
↓ 17 callers
Function
podFor
podFor makes a pod labeled as one of app's instances (as the controller does).
operator/internal/api/mcp_test.go:46
↓ 17 callers
Function
writeJSON
(w http.ResponseWriter, status int, body any)
operator/internal/api/rest.go:166
↓ 15 callers
Method
Delete
(ctx context.Context, id string)
operator/internal/api/apikeys.go:48
↓ 15 callers
Function
useDebounce
(value: T, delay: number = 300)
dashboard/src/common/hooks/use-debounce.ts:22
↓ 14 callers
Function
gql
--- GraphQL adapter (same Core, so same effects) ---
operator/internal/api/api_test.go:186
↓ 14 callers
Function
writeErr
(w http.ResponseWriter, err error)
operator/internal/api/rest.go:172
↓ 13 callers
Function
coreFrom
(ctx context.Context)
operator/internal/api/graphql.go:380
↓ 12 callers
Function
base64UrlEncode
(str: string)
dashboard/src/common/lib/utils/encode.ts:6
↓ 12 callers
Function
renderWithTabs
(props = defaultProps)
dashboard/src/common/components/responsive-tab-trigger-list/__tests__/index.test.tsx:24
↓ 12 callers
Function
testScheme
()
operator/internal/api/mcp_test.go:38
↓ 12 callers
Function
useIsMobile
()
dashboard/src/common/hooks/use-mobile.ts:13
↓ 12 callers
Function
useOnMounted
( callback: () => void | (() => void) | Promise<void>, )
dashboard/src/common/hooks/use-on-mounted.tsx:37
↓ 11 callers
Method
List
(ctx context.Context)
operator/internal/api/apikeys.go:47
↓ 11 callers
Method
Metrics
Metrics is the single metrics read every adapter (REST + GraphQL) calls. It fails with ErrNotFound for an unknown App (like Get), dispatches on q.Metr
operator/internal/api/metrics.go:163
↓ 11 callers
Function
getApp
(t *testing.T, cl client.Client, name string)
operator/internal/api/api_test.go:376
↓ 10 callers
Method
Create
(ctx context.Context, name string)
operator/internal/api/apikeys.go:46
↓ 9 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:29
↓ 9 callers
Function
callTool
(t *testing.T, cs *mcp.ClientSession, name string, args map[string]any, out any)
operator/internal/api/mcp_test.go:125
↓ 9 callers
Method
fail
(ctx context.Context, app *appv1alpha1.App, reason string, err error)
operator/internal/controller/app_controller.go:476
↓ 9 callers
Function
newServer
(t *testing.T, apps ...*appv1alpha1.App)
operator/internal/api/api_test.go:54
↓ 8 callers
Method
Handler
Handler returns the fully wired http.Handler, or an error if misconfigured (missing Hydra URL, or an invalid GraphQL schema). Routes (REST is Render-p
operator/internal/api/server.go:52
↓ 8 callers
Function
mkApp
(name, host string, expose bool, hosts ...string)
operator/internal/controller/hosts_test.go:28
↓ 8 callers
Method
now
()
operator/internal/api/core.go:135
↓ 7 callers
Function
base64Decode
(base64: string)
dashboard/src/common/lib/utils/encode.ts:57
↓ 7 callers
Function
envOr
envOr returns the env var k or a default.
operator/cmd/main.go:50
↓ 6 callers
Function
Run
Run executes the provided command within this context
operator/test/utils/utils.go:43
↓ 6 callers
Function
base64UrlDecode
(base64Url: string)
dashboard/src/common/lib/utils/encode.ts:16
↓ 6 callers
Method
do
(ctx context.Context, method, path string, body any)
operator/internal/runtime/opensandbox.go:64
↓ 6 callers
Function
fakeHydraURL
fakeHydraURL is the shorthand for tests that only need an introspection backend accepting testToken.
operator/internal/api/auth_test.go:53
↓ 6 callers
Method
fetch
(ctx context.Context, name string)
operator/internal/api/core.go:279
↓ 6 callers
Function
resolvePlan
resolvePlan returns the plan (defaulting to free) and the effective storage size in GB (never below the plan floor — storage only grows).
operator/internal/controller/database_controller.go:79
↓ 6 callers
Function
useSidebar
()
dashboard/src/common/components/ui/sidebar.tsx:44
↓ 5 callers
Function
logServer
logServer wires a Server whose Core reads canned pod logs (query + follow).
operator/internal/api/logs_test.go:43
↓ 5 callers
Function
mcpClient
--- MCP adapter (same Core, Render-consistent tool names) ---
operator/internal/api/mcp_test.go:109
↓ 5 callers
Function
staticLogs
staticLogs is a PodLogSource serving canned, timestamped lines per pod.
operator/internal/api/mcp_test.go:55
↓ 5 callers
Function
tlsSecretName
tlsSecretName gives each host its own certificate secret so one domain's failed issuance/renewal (e.g. a customer's deleted CNAME) can't block the oth
operator/internal/controller/app_controller.go:455
↓ 5 callers
Function
toRenderService
(a AppView)
operator/internal/api/render.go:67
↓ 5 callers
Function
useApolloCacheClear
()
dashboard/src/common/hooks/use-apollo-cache.ts:16
↓ 4 callers
Method
Logs
Logs returns recent log lines for an App, aggregated across its pods (instances) and sorted by timestamp so instances interleave chronologically. tail
operator/internal/api/core.go:206
↓ 4 callers
Method
Reconcile
+kubebuilder:rbac:groups=app.bex.co,resources=apps,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=app.bex.co,resources=apps/
operator/internal/controller/app_controller.go:79
↓ 4 callers
Method
do
do runs one Hydra admin call, mapping 404 to ErrNotFound and any other unexpected status to an error.
operator/internal/api/apikeys.go:170
↓ 4 callers
Function
fakeAppClient
fakeAppClient builds the scheme + fake client every server test uses.
operator/internal/api/api_test.go:42
↓ 4 callers
Function
formatDate
(date: Date | undefined, short = false)
dashboard/src/common/components/ui/date-picker.tsx:15
↓ 4 callers
Function
formatNumber
(value: number, renderCommas: boolean)
dashboard/src/common/lib/format/format-number.ts:9
↓ 4 callers
Function
metricServer
metricServer wires a Server whose Core has the given metric sources.
operator/internal/api/metrics_test.go:63
↓ 4 callers
Function
podWithLimits
podWithLimits is podFor("web", name) plus a 1-core / 1Gi limit on the app container, so percentage-mode resource metrics have a denominator (0.5 core
operator/internal/api/metrics_test.go:38
↓ 4 callers
Function
promQueryFor
promQueryFor builds the PromQL range query for a request metric over Traefik's counters: - http_requests: rate of traefik_service_requests_total (req
operator/internal/api/metricsource.go:167
↓ 4 callers
Method
serviceTool
serviceTool adapts a single-service Core verb (Get/Restart/Suspend/Resume) into an MCP tool handler returning the Render service object — the same map
operator/internal/api/mcp.go:230
↓ 4 callers
Function
useFormField
()
dashboard/src/common/components/ui/form.tsx:45
↓ 4 callers
Function
useOryFlow
( kind: K, flowId: string | undefined, returnTo = "/", )
dashboard/src/common/hooks/use-ory-flow.ts:31
↓ 3 callers
Method
CreateAPIKey
CreateAPIKey mints a new machine credential. The returned Secret is shown exactly once.
operator/internal/api/apikeys.go:53
↓ 3 callers
Method
ListAPIKeys
ListAPIKeys returns every machine credential (secrets omitted).
operator/internal/api/apikeys.go:64
↓ 3 callers
Method
MCPServer
MCPServer builds the MCP server with every tool registered over Core. The returned server is stateless w.r.t. sessions, so one instance is reused for
operator/internal/api/mcp.go:89
↓ 3 callers
Method
RevokeAPIKey
RevokeAPIKey deletes the credential; tokens already minted with it stop introspecting active (subject to bex-api's ≤30s introspection cache).
operator/internal/api/apikeys.go:73
↓ 3 callers
Method
SetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/app_controller.go:487
↓ 3 callers
Method
WaitState
WaitState polls until the sandbox reaches one of want (or fails / times out).
operator/internal/runtime/opensandbox.go:143
↓ 3 callers
Function
cnpgClusterSpec
cnpgClusterSpec builds the CloudNativePG Cluster .spec for a Database. Pure (no client) so the plan->Cluster projection is unit-testable.
operator/internal/controller/database_controller.go:93
↓ 3 callers
Function
createFrontendApi
(cookie?: string)
dashboard/src/common/lib/ory/frontend.ts:12
↓ 3 callers
Method
dbFail
(ctx context.Context, db *appv1alpha1.Database, reason string, err error)
operator/internal/controller/database_controller.go:236
↓ 3 callers
Function
drainClose
drainClose drains and closes a response body so its connection returns to the pool for reuse.
operator/internal/api/auth.go:98
↓ 3 callers
Function
fakeHydra
fakeHydra serves POST /admin/oauth2/introspect: testToken is active (sub "client-1"), everything else inactive. hits counts real introspections (the c
operator/internal/api/auth_test.go:31
↓ 3 callers
Method
fetchDatabase
(ctx context.Context, name string)
operator/internal/api/postgres.go:119
↓ 3 callers
Function
groupLabel
groupLabel maps a Render groupBy onto a Traefik service-metric label. Only status/method have service-level labels; anything else groups nothing.
operator/internal/api/metricsource.go:212
↓ 3 callers
Function
isAPIKey
(c hydraClient)
operator/internal/api/apikeys.go:112
↓ 3 callers
Function
onChange
()
dashboard/src/common/hooks/use-mobile.ts:18
↓ 3 callers
Method
patch
patch fetches the App, applies mutate to its spec, and merge-patches — only spec fields change; the operator reconciles the rest. This is the single w
operator/internal/api/core.go:294
↓ 3 callers
Function
pgView
(d *appv1alpha1.Database)
operator/internal/api/postgres.go:96
↓ 3 callers
Function
requireAuth
(redirectPath?: string)
dashboard/src/common/lib/auth/auth.ts:8
↓ 3 callers
Method
setPhase
(ctx context.Context, app *appv1alpha1.App, p appv1alpha1.AppPhase, reason, msg string)
operator/internal/controller/app_controller.go:467
↓ 3 callers
Function
staticResourceMetrics
staticResourceMetrics fakes a ResourceMetricsSource with canned per-pod usage.
operator/internal/api/metrics_test.go:51
↓ 3 callers
Function
useTheme
()
dashboard/src/common/providers/theme-provider/hooks.ts:5
↓ 3 callers
Function
view
(a *appv1alpha1.App)
operator/internal/api/core.go:142
↓ 2 callers
Method
CreatePostgres
CreatePostgres provisions a managed Postgres (a Database CR the operator projects to a CNPG Cluster).
operator/internal/api/postgres.go:155
↓ 2 callers
Method
DeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
operator/api/v1alpha1/zz_generated.deepcopy.go:38
↓ 2 callers
Method
DeletePostgres
DeletePostgres removes a managed Postgres (cascades the CNPG Cluster, PVC, Secret and any external route via owner refs).
operator/internal/api/postgres.go:176
↓ 2 callers
Method
Endpoint
Endpoint returns the host target for an app port (re-fetch after resume).
operator/internal/runtime/opensandbox.go:164
↓ 2 callers
Method
GetPostgres
GetPostgres returns one managed Postgres, or ErrNotFound.
operator/internal/api/postgres.go:145
↓ 2 callers
Method
ListPostgres
ListPostgres returns every managed Postgres in the namespace.
operator/internal/api/postgres.go:132
↓ 2 callers
Method
PostgresConnectionInfo
PostgresConnectionInfo assembles the internal + external connection strings from CNPG's generated "<name>-app" Secret (the only place the password is
operator/internal/api/postgres.go:187
↓ 2 callers
Method
QueryLogs
QueryLogs returns an App's log lines filtered by type/text/time, newest-last, capped at Limit. It reuses the same pod-log collection as the MCP Logs v
operator/internal/api/logs.go:120
↓ 2 callers
Method
URL
()
operator/internal/runtime/opensandbox.go:27
↓ 2 callers
Function
apiKeyFromHydra
(c hydraClient)
operator/internal/api/apikeys.go:117
↓ 2 callers
Method
appPods
appPods lists an App's replica pods (the controller's app.bex.co/app label) — the same selection the logs verb uses.
operator/internal/api/metrics.go:301
↓ 2 callers
Method
appliesToApplication
appliesToApplication reports whether the query could match application logs — bex's only log source. A request/build-only query never can.
operator/internal/api/logs.go:112
↓ 2 callers
Method
authMiddleware
authMiddleware builds the auth gate, validating its configuration up front so a misconfigured binary refuses to start.
operator/internal/api/server.go:78
↓ 2 callers
Method
collectPodLogs
collectPodLogs reads up to tail lines from every replica of an App, tagged and timestamp-sorted. Shared by Logs (MCP) and QueryLogs (REST/GraphQL) so
operator/internal/api/core.go:222
↓ 2 callers
Function
contains
(s []string, v string)
operator/internal/runtime/opensandbox.go:215
↓ 2 callers
Function
effectiveHosts
effectiveHosts resolves every external FQDN an App serves, in canonical order: spec.host first (the legacy single host — first position keeps existing
operator/internal/controller/app_controller.go:419
↓ 2 callers
Function
effectiveReplicas
effectiveReplicas derives the Deployment size: spec.replicas (default 1), overridden to 0 while suspended. spec.replicas itself is never rewritten — i
operator/internal/controller/app_controller.go:441
next →
1–100 of 549, ranked by callers