MCPcopy Create free account

hub / github.com/bex-co/bex / functions

Functions549 in github.com/bex-co/bex

↓ 189 callersFunctioncn
(...inputs: ClassValue[])
dashboard/src/common/lib/utils/utils.ts:14
↓ 50 callersFunctiondo
(t *testing.T, h http.Handler, method, path, token, body string)
operator/internal/api/api_test.go:76
↓ 47 callersMethodGet
Get returns one App, or ErrNotFound.
operator/internal/api/core.go:174
↓ 35 callersFunctiongqlField
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 callersMethodError
()
operator/internal/api/server.go:87
↓ 27 callersFunctionsampleApp
(name string)
operator/internal/api/api_test.go:68
↓ 19 callersFunctionuseLocalStorageState
( key: string, defaultValue: T, options: UseLocalStorageStateOptions<T> = {}, )
dashboard/src/common/hooks/use-local-storage-state.ts:62
↓ 18 callersFunctiondecode
(t *testing.T, w *httptest.ResponseRecorder, v any)
operator/internal/api/api_test.go:369
↓ 18 callersFunctionformatDateISO
( dateString: string | null | undefined, )
dashboard/src/common/lib/format/format-date-iso.ts:8
↓ 18 callersFunctionsleep
(ms: number)
dashboard/src/common/lib/utils/time.ts:8
↓ 17 callersFunctionbase64Encode
(str: string)
dashboard/src/common/lib/utils/encode.ts:36
↓ 17 callersFunctionpodFor
podFor makes a pod labeled as one of app's instances (as the controller does).
operator/internal/api/mcp_test.go:46
↓ 17 callersFunctionwriteJSON
(w http.ResponseWriter, status int, body any)
operator/internal/api/rest.go:166
↓ 15 callersMethodDelete
(ctx context.Context, id string)
operator/internal/api/apikeys.go:48
↓ 15 callersFunctionuseDebounce
(value: T, delay: number = 300)
dashboard/src/common/hooks/use-debounce.ts:22
↓ 14 callersFunctiongql
--- GraphQL adapter (same Core, so same effects) ---
operator/internal/api/api_test.go:186
↓ 14 callersFunctionwriteErr
(w http.ResponseWriter, err error)
operator/internal/api/rest.go:172
↓ 13 callersFunctioncoreFrom
(ctx context.Context)
operator/internal/api/graphql.go:380
↓ 12 callersFunctionbase64UrlEncode
(str: string)
dashboard/src/common/lib/utils/encode.ts:6
↓ 12 callersFunctionrenderWithTabs
(props = defaultProps)
dashboard/src/common/components/responsive-tab-trigger-list/__tests__/index.test.tsx:24
↓ 12 callersFunctiontestScheme
()
operator/internal/api/mcp_test.go:38
↓ 12 callersFunctionuseIsMobile
()
dashboard/src/common/hooks/use-mobile.ts:13
↓ 12 callersFunctionuseOnMounted
( callback: () => void | (() => void) | Promise<void>, )
dashboard/src/common/hooks/use-on-mounted.tsx:37
↓ 11 callersMethodList
(ctx context.Context)
operator/internal/api/apikeys.go:47
↓ 11 callersMethodMetrics
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 callersFunctiongetApp
(t *testing.T, cl client.Client, name string)
operator/internal/api/api_test.go:376
↓ 10 callersMethodCreate
(ctx context.Context, name string)
operator/internal/api/apikeys.go:46
↓ 9 callersMethodDeepCopyInto
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 callersFunctioncallTool
(t *testing.T, cs *mcp.ClientSession, name string, args map[string]any, out any)
operator/internal/api/mcp_test.go:125
↓ 9 callersMethodfail
(ctx context.Context, app *appv1alpha1.App, reason string, err error)
operator/internal/controller/app_controller.go:476
↓ 9 callersFunctionnewServer
(t *testing.T, apps ...*appv1alpha1.App)
operator/internal/api/api_test.go:54
↓ 8 callersMethodHandler
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 callersFunctionmkApp
(name, host string, expose bool, hosts ...string)
operator/internal/controller/hosts_test.go:28
↓ 8 callersMethodnow
()
operator/internal/api/core.go:135
↓ 7 callersFunctionbase64Decode
(base64: string)
dashboard/src/common/lib/utils/encode.ts:57
↓ 7 callersFunctionenvOr
envOr returns the env var k or a default.
operator/cmd/main.go:50
↓ 6 callersFunctionRun
Run executes the provided command within this context
operator/test/utils/utils.go:43
↓ 6 callersFunctionbase64UrlDecode
(base64Url: string)
dashboard/src/common/lib/utils/encode.ts:16
↓ 6 callersMethoddo
(ctx context.Context, method, path string, body any)
operator/internal/runtime/opensandbox.go:64
↓ 6 callersFunctionfakeHydraURL
fakeHydraURL is the shorthand for tests that only need an introspection backend accepting testToken.
operator/internal/api/auth_test.go:53
↓ 6 callersMethodfetch
(ctx context.Context, name string)
operator/internal/api/core.go:279
↓ 6 callersFunctionresolvePlan
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 callersFunctionuseSidebar
()
dashboard/src/common/components/ui/sidebar.tsx:44
↓ 5 callersFunctionlogServer
logServer wires a Server whose Core reads canned pod logs (query + follow).
operator/internal/api/logs_test.go:43
↓ 5 callersFunctionmcpClient
--- MCP adapter (same Core, Render-consistent tool names) ---
operator/internal/api/mcp_test.go:109
↓ 5 callersFunctionstaticLogs
staticLogs is a PodLogSource serving canned, timestamped lines per pod.
operator/internal/api/mcp_test.go:55
↓ 5 callersFunctiontlsSecretName
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 callersFunctiontoRenderService
(a AppView)
operator/internal/api/render.go:67
↓ 5 callersFunctionuseApolloCacheClear
()
dashboard/src/common/hooks/use-apollo-cache.ts:16
↓ 4 callersMethodLogs
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 callersMethodReconcile
+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 callersMethoddo
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 callersFunctionfakeAppClient
fakeAppClient builds the scheme + fake client every server test uses.
operator/internal/api/api_test.go:42
↓ 4 callersFunctionformatDate
(date: Date | undefined, short = false)
dashboard/src/common/components/ui/date-picker.tsx:15
↓ 4 callersFunctionformatNumber
(value: number, renderCommas: boolean)
dashboard/src/common/lib/format/format-number.ts:9
↓ 4 callersFunctionmetricServer
metricServer wires a Server whose Core has the given metric sources.
operator/internal/api/metrics_test.go:63
↓ 4 callersFunctionpodWithLimits
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 callersFunctionpromQueryFor
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 callersMethodserviceTool
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 callersFunctionuseFormField
()
dashboard/src/common/components/ui/form.tsx:45
↓ 4 callersFunctionuseOryFlow
( kind: K, flowId: string | undefined, returnTo = "/", )
dashboard/src/common/hooks/use-ory-flow.ts:31
↓ 3 callersMethodCreateAPIKey
CreateAPIKey mints a new machine credential. The returned Secret is shown exactly once.
operator/internal/api/apikeys.go:53
↓ 3 callersMethodListAPIKeys
ListAPIKeys returns every machine credential (secrets omitted).
operator/internal/api/apikeys.go:64
↓ 3 callersMethodMCPServer
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 callersMethodRevokeAPIKey
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 callersMethodSetupWithManager
SetupWithManager sets up the controller with the Manager.
operator/internal/controller/app_controller.go:487
↓ 3 callersMethodWaitState
WaitState polls until the sandbox reaches one of want (or fails / times out).
operator/internal/runtime/opensandbox.go:143
↓ 3 callersFunctioncnpgClusterSpec
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 callersFunctioncreateFrontendApi
(cookie?: string)
dashboard/src/common/lib/ory/frontend.ts:12
↓ 3 callersMethoddbFail
(ctx context.Context, db *appv1alpha1.Database, reason string, err error)
operator/internal/controller/database_controller.go:236
↓ 3 callersFunctiondrainClose
drainClose drains and closes a response body so its connection returns to the pool for reuse.
operator/internal/api/auth.go:98
↓ 3 callersFunctionfakeHydra
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 callersMethodfetchDatabase
(ctx context.Context, name string)
operator/internal/api/postgres.go:119
↓ 3 callersFunctiongroupLabel
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 callersFunctionisAPIKey
(c hydraClient)
operator/internal/api/apikeys.go:112
↓ 3 callersFunctiononChange
()
dashboard/src/common/hooks/use-mobile.ts:18
↓ 3 callersMethodpatch
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 callersFunctionpgView
(d *appv1alpha1.Database)
operator/internal/api/postgres.go:96
↓ 3 callersFunctionrequireAuth
(redirectPath?: string)
dashboard/src/common/lib/auth/auth.ts:8
↓ 3 callersMethodsetPhase
(ctx context.Context, app *appv1alpha1.App, p appv1alpha1.AppPhase, reason, msg string)
operator/internal/controller/app_controller.go:467
↓ 3 callersFunctionstaticResourceMetrics
staticResourceMetrics fakes a ResourceMetricsSource with canned per-pod usage.
operator/internal/api/metrics_test.go:51
↓ 3 callersFunctionuseTheme
()
dashboard/src/common/providers/theme-provider/hooks.ts:5
↓ 3 callersFunctionview
(a *appv1alpha1.App)
operator/internal/api/core.go:142
↓ 2 callersMethodCreatePostgres
CreatePostgres provisions a managed Postgres (a Database CR the operator projects to a CNPG Cluster).
operator/internal/api/postgres.go:155
↓ 2 callersMethodDeepCopy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
operator/api/v1alpha1/zz_generated.deepcopy.go:38
↓ 2 callersMethodDeletePostgres
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 callersMethodEndpoint
Endpoint returns the host target for an app port (re-fetch after resume).
operator/internal/runtime/opensandbox.go:164
↓ 2 callersMethodGetPostgres
GetPostgres returns one managed Postgres, or ErrNotFound.
operator/internal/api/postgres.go:145
↓ 2 callersMethodListPostgres
ListPostgres returns every managed Postgres in the namespace.
operator/internal/api/postgres.go:132
↓ 2 callersMethodPostgresConnectionInfo
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 callersMethodQueryLogs
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 callersMethodURL
()
operator/internal/runtime/opensandbox.go:27
↓ 2 callersFunctionapiKeyFromHydra
(c hydraClient)
operator/internal/api/apikeys.go:117
↓ 2 callersMethodappPods
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 callersMethodappliesToApplication
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 callersMethodauthMiddleware
authMiddleware builds the auth gate, validating its configuration up front so a misconfigured binary refuses to start.
operator/internal/api/server.go:78
↓ 2 callersMethodcollectPodLogs
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 callersFunctioncontains
(s []string, v string)
operator/internal/runtime/opensandbox.go:215
↓ 2 callersFunctioneffectiveHosts
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 callersFunctioneffectiveReplicas
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