Directories
¶
| Path | Synopsis |
|---|---|
|
apis
|
|
|
admin/v1alpha1
Package v1alpha1 contains the platform-owner-only admin API.
|
Package v1alpha1 contains the platform-owner-only admin API. |
|
providers/v1alpha1
Package v1alpha1 contains the platform-owner-only API for managing railgrid providers (extensions).
|
Package v1alpha1 contains the platform-owner-only API for managing railgrid providers (extensions). |
|
railgrid/v1alpha1
Package v1alpha1 contains API types for the railgrid API group.
|
Package v1alpha1 contains API types for the railgrid API group. |
|
tenancy/v1alpha1
Package v1alpha1 contains tenancy API types for user management.
|
Package v1alpha1 contains tenancy API types for user management. |
|
cmd
|
|
|
railgrid
command
Package main is the entrypoint for the railgrid CLI.
|
Package main is the entrypoint for the railgrid CLI. |
|
railgrid-hub
command
Package main is the entrypoint for the railgrid-hub server.
|
Package main is the entrypoint for the railgrid-hub server. |
|
railgrid-runner
command
Command railgrid-runner serves the loopback-only generic runner protocol.
|
Command railgrid-runner serves the loopback-only generic runner protocol. |
|
release
command
Command release cuts release tags for railgrid components.
|
Command release cuts release tags for railgrid components. |
|
config
|
|
|
kcp
Package kcp embeds kcp configuration files.
|
Package kcp embeds kcp configuration files. |
|
hack
|
|
|
dex/web
Package web provides embedded web assets for the dex server.
|
Package web provides embedded web assets for the dex server. |
|
edges-macos
command
Command macos-stub is a localhost-only health endpoint used to validate the Edges Service transport on a MacOSServer.
|
Command macos-stub is a localhost-only health endpoint used to validate the Edges Service transport on a MacOSServer. |
|
gen-core-apiexport
command
gen-core-apiexport merges all individual APIExport YAMLs under config/kcp/ into a single "core.railgrid.ai" APIExport that covers every API group.
|
gen-core-apiexport merges all individual APIExport YAMLs under config/kcp/ into a single "core.railgrid.ai" APIExport that covers every API group. |
|
govulncheck
command
govulncheck-filter turns `govulncheck -format json` output into a blocking CI gate with an auditable allowlist.
|
govulncheck-filter turns `govulncheck -format json` output into a blocking CI gate with an auditable allowlist. |
|
pkg
|
|
|
agent
Package agent implements the railgrid agent that connects edges to the hub.
|
Package agent implements the railgrid agent that connects edges to the hub. |
|
agent/addons
Package addons materializes edges.railgrid.ai Addon objects on the host next to the agent.
|
Package addons materializes edges.railgrid.ai Addon objects on the host next to the agent. |
|
agent/addons/supervisor
Package supervisor runs one long-lived child process for an edge add-on and keeps it running.
|
Package supervisor runs one long-lived child process for an edge add-on and keeps it running. |
|
agent/discovery
Package discovery detects HTTP services running on the edge host next to the agent (e.g.
|
Package discovery detects HTTP services running on the edge host next to the agent (e.g. |
|
agent/reconciler
Package reconciler reconciles workloads on the agent side: it watches the edge's Placements in the tenant workspace and materializes each as a local Deployment.
|
Package reconciler reconciles workloads on the agent side: it watches the edge's Placements in the tenant workspace and materializes each as a local Deployment. |
|
agent/status
Package status reports agent status back to the hub.
|
Package status reports agent status back to the hub. |
|
agent/tunnel
Package tunnel implements reverse-dial tunneling between agent and hub.
|
Package tunnel implements reverse-dial tunneling between agent and hub. |
|
apiurl
Package apiurl is the single source of truth for all railgrid service path construction and URL parsing.
|
Package apiurl is the single source of truth for all railgrid service path construction and URL parsing. |
|
browsersession
Package browsersession owns the hub's shared browser login session.
|
Package browsersession owns the hub's shared browser login session. |
|
cli/auth
Package auth handles OIDC authentication for the CLI.
|
Package auth handles OIDC authentication for the CLI. |
|
cli/cmd
Package cmd implements the railgrid CLI commands.
|
Package cmd implements the railgrid CLI commands. |
|
cli/cmd/dev/cmd
Package cmd provides the railgrid dev command and its subcommands.
|
Package cmd provides the railgrid dev command and its subcommands. |
|
cli/cmd/dev/plugin
Package plugin provides the implementation for railgrid dev command plugins.
|
Package plugin provides the implementation for railgrid dev command plugins. |
|
client
Package client provides dynamic Kubernetes client utilities.
|
Package client provides dynamic Kubernetes client utilities. |
|
hub
Package hub implements the railgrid hub server.
|
Package hub implements the railgrid hub server. |
|
hub/admin
Package admin implements the platform-admin surface mounted at /api/admin/* and surfaced in the portal's gated /bonkers area.
|
Package admin implements the platform-admin surface mounted at /api/admin/* and surfaced in the portal's gated /bonkers area. |
|
hub/appauth
Package appauth is the hub's login-time authorization endpoint for published applications.
|
Package appauth is the hub's login-time authorization endpoint for published applications. |
|
hub/bootstrap
Package bootstrap embeds bootstrap resources for hub initialization.
|
Package bootstrap embeds bootstrap resources for hub initialization. |
|
hub/controllers/mcpserver
Package mcpserver reconciles MCPServer objects.
|
Package mcpserver reconciles MCPServer objects. |
|
hub/controllers/membershipindex
Package membershipindex implements the UMI invariant reconciler: a controller that watches UserMembershipIndex CRs in root:railgrid:users and repairs rows that strand a user.
|
Package membershipindex implements the UMI invariant reconciler: a controller that watches UserMembershipIndex CRs in root:railgrid:users and repairs rows that strand a user. |
|
hub/controllers/organization
Package organization implements the bootstrap controller that gives every User a personal Organization on creation (per docs/organizations.md §Personal Org).
|
Package organization implements the bootstrap controller that gives every User a personal Organization on creation (per docs/organizations.md §Personal Org). |
|
hub/controllers/softdelete
Package softdelete implements roadmap step 8: the soft-delete reconciler that honours the 30-day grace window from docs/organizations.md decisions O-8 (User delete) and O-13 (Org + Workspace delete).
|
Package softdelete implements roadmap step 8: the soft-delete reconciler that honours the 30-day grace window from docs/organizations.md decisions O-8 (User delete) and O-13 (Org + Workspace delete). |
|
hub/hubaccess
Package hubaccess implements the hub-access half of the provider contract: the hub REST capabilities a provider may exercise with the delegated user token the hub hands it in place of the caller's bearer.
|
Package hubaccess implements the hub-access half of the provider contract: the hub REST capabilities a provider may exercise with the delegated user token the hub hands it in place of the caller's bearer. |
|
hub/kcp
Package kcp bootstraps kcp API resources.
|
Package kcp bootstraps kcp API resources. |
|
hub/leaderelection
Package leaderelection gates the hub's singleton controllers so a hub scaled to multiple replicas still reconciles each object exactly once.
|
Package leaderelection gates the hub's singleton controllers so a hub scaled to multiple replicas still reconciles each object exactly once. |
|
hub/mcpaggregate
Package mcpaggregate serves the hub's always-on aggregate MCP endpoint.
|
Package mcpaggregate serves the hub's always-on aggregate MCP endpoint. |
|
hub/providers
Package providers backs the hub's pluggable-provider extension surface: an in-memory routing table, reverse proxies for /ui/providers/{name}/* and /services/providers/{name}/*, and the controller that keeps the table in sync with ProviderCatalogEntry resources.
|
Package providers backs the hub's pluggable-provider extension surface: an in-memory routing table, reverse proxies for /ui/providers/{name}/* and /services/providers/{name}/*, and the controller that keeps the table in sync with ProviderCatalogEntry resources. |
|
hub/quota
Package quota implements the quota checks pinned by decisions O-5 (Org quota = soft cap, admin-overridable per User; default 10) and O-6 (Workspace quota = soft cap, admin-overridable per Org; default 50) in docs/organizations.md.
|
Package quota implements the quota checks pinned by decisions O-5 (Org quota = soft cap, admin-overridable per User; default 10) and O-6 (Workspace quota = soft cap, admin-overridable per Org; default 50) in docs/organizations.md. |
|
hub/restapi
Package restapi implements roadmap step 10: the hub-mediated REST surface for Org / Workspace / Membership / User CRUD per docs/organizations.md decision O-10 ("Org workspaces are hub-mediated only"), plus the undelete actions wired to PR #212's soft-delete reconciler, the self-leave / role PATCH from O-12, and the ?cascade=true shortcut from O-9.
|
Package restapi implements roadmap step 10: the hub-mediated REST surface for Org / Workspace / Membership / User CRUD per docs/organizations.md decision O-10 ("Org workspaces are hub-mediated only"), plus the undelete actions wired to PR #212's soft-delete reconciler, the self-leave / role PATCH from O-12, and the ?cascade=true shortcut from O-9. |
|
hub/serviceaccounts
Package serviceaccounts implements roadmap step 9 (O-14): bot identity for child Workspaces via native kube `core/v1.ServiceAccount`s marked with railgrid annotations.
|
Package serviceaccounts implements roadmap step 9 (O-14): bot identity for child Workspaces via native kube `core/v1.ServiceAccount`s marked with railgrid annotations. |
|
hub/sharedstore
Package sharedstore is the hub's cross-replica key/value store for short-lived login state: browser sessions and published-app authorization codes.
|
Package sharedstore is the hub's cross-replica key/value store for short-lived login state: browser sessions and published-app authorization codes. |
|
hub/tenant
Package tenant implements the hub-side tenant middleware described in docs/organizations.md §Switch the active context.
|
Package tenant implements the hub-side tenant middleware described in docs/organizations.md §Switch the active context. |
|
hub/workloadidentity
Package workloadidentity owns the production provider-action workload capability exchange.
|
Package workloadidentity owns the production provider-action workload capability exchange. |
|
kcppaths
Package kcppaths is the single source of truth for the railgrid kcp workspace topology.
|
Package kcppaths is the single source of truth for the railgrid kcp workspace topology. |
|
runner
Package runner provides a durable, authenticated local execution service.
|
Package runner provides a durable, authenticated local execution service. |
|
runner/harness
Package harness defines the public execution seam for runner adapters.
|
Package harness defines the public execution seam for runner adapters. |
|
runner/harness/claude
Package claude adapts headless Claude Code to the runner harness.
|
Package claude adapts headless Claude Code to the runner harness. |
|
runner/harness/codex
Package codex adapts the Codex app-server protocol to the runner harness.
|
Package codex adapts the Codex app-server protocol to the runner harness. |
|
runner/harness/internal/proc
Package proc holds the process-group primitives every harness adapter needs.
|
Package proc holds the process-group primitives every harness adapter needs. |
|
runner/runnercli
Package runnercli holds the launch logic shared by the standalone railgrid-runner binary (cmd/railgrid-runner) and the `railgrid runner run` subcommand of the main CLI (pkg/cli/cmd/runner.go).
|
Package runnercli holds the launch logic shared by the standalone railgrid-runner binary (cmd/railgrid-runner) and the `railgrid runner run` subcommand of the main CLI (pkg/cli/cmd/runner.go). |
|
server/auth
Package auth provides server-side OIDC token verification.
|
Package auth provides server-side OIDC token verification. |
|
server/proxy
Package proxy reverse-proxies authenticated requests to kcp.
|
Package proxy reverse-proxies authenticated requests to kcp. |
|
util/confighelpers
Package confighelpers provides bootstrap helpers inspired by github.com/kcp-dev/kcp/config/helpers.
|
Package confighelpers provides bootstrap helpers inspired by github.com/kcp-dev/kcp/config/helpers. |
|
util/conncontext
Package conncontext stores and retrieves net.Conn from context.
|
Package conncontext stores and retrieves net.Conn from context. |
|
util/identity
Package identity builds the cross-workspace ServiceAccount identity railgrid authorizes foreign SAs under.
|
Package identity builds the cross-workspace ServiceAccount identity railgrid authorizes foreign SAs under. |
|
util/localuser
Package localuser resolves the local account a privileged installer or supervisor drops privileges to.
|
Package localuser resolves the local account a privileged installer or supervisor drops privileges to. |
|
util/safeio
Package safeio writes files and directories into a location that a less privileged account can influence, without letting that account redirect the write.
|
Package safeio writes files and directories into a location that a less privileged account can influence, without letting that account redirect the write. |
|
version
Package version holds build-time version information injected via ldflags.
|
Package version holds build-time version information injected via ldflags. |
|
test
|
|
|
e2e/cases
Package cases contains shared e2e test case builders that are reused across multiple test suites.
|
Package cases contains shared e2e test case builders that are reused across multiple test suites. |
|
e2e/framework
Package framework provides shared test infrastructure for railgrid e2e tests.
|
Package framework provides shared test infrastructure for railgrid e2e tests. |
|
utils
|
|
|
testfakes
Package testfakes provides shared fake implementations for unit testing controllers that depend on multicluster-runtime manager and cluster interfaces.
|
Package testfakes provides shared fake implementations for unit testing controllers that depend on multicluster-runtime manager and cluster interfaces. |
Click to show internal directories.
Click to hide internal directories.