Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentauth resolves an agent bearer token to its owner and agent (#59).
|
Package agentauth resolves an agent bearer token to its owner and agent (#59). |
|
Package agentpolicy is the single enforcement gate for agent tool calls (#60).
|
Package agentpolicy is the single enforcement gate for agent tool calls (#60). |
|
agents
|
|
|
manage
Package manage stores external agents and their tokens (#59): who sees an agent, creating one bound to workspaces its owner can use, updating, deleting, and issuing and revoking tokens.
|
Package manage stores external agents and their tokens (#59): who sees an agent, creating one bound to workspaces its owner can use, updating, deleting, and issuing and revoking tokens. |
|
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
Package app is the composition root the API and the worker share (#362): it builds the dependency graph both processes need, once, from the configuration.
|
Package app is the composition root the API and the worker share (#362): it builds the dependency graph both processes need, once, from the configuration. |
|
Package assistant owns the embedded assistant's settings, its per-user × workspace agent and the persisted conversations (#62).
|
Package assistant owns the embedded assistant's settings, its per-user × workspace agent and the persisted conversations (#62). |
|
llm
Package llm is the assistant's provider boundary (#62).
|
Package llm is the assistant's provider boundary (#62). |
|
Package audit records security- and data-relevant operations in an append-only store (#45).
|
Package audit records security- and data-relevant operations in an append-only store (#45). |
|
export
Package export ships audit events to an OpenSearch/Elasticsearch-compatible `_bulk` endpoint (#50): at-least-once, ordered and resumable.
|
Package export ships audit events to an OpenSearch/Elasticsearch-compatible `_bulk` endpoint (#50): at-least-once, ordered and resumable. |
|
offload
Package offload writes a stream's rows to an S3 cold sink as gzip NDJSON, one or more bounded chunks per UTC day with a per-day manifest (ADR 0024, amended by ADR 0026).
|
Package offload writes a stream's rows to an S3 cold sink as gzip NDJSON, one or more bounded chunks per UTC day with a per-day manifest (ADR 0024, amended by ADR 0026). |
|
retention
Package retention drops the partitions of a stream that are past their hot window, gated on the cold-sink cursor and the per-day manifest (ADR 0024, ADR 0026).
|
Package retention drops the partitions of a stream that are past their hot window, gated on the cold-sink cursor and the per-day manifest (ADR 0024, ADR 0026). |
|
trail
Package trail reads the audit trail (#43): pages of events with their filters and cursor, the CSV export, and the users and catalogs the resolver names.
|
Package trail reads the audit trail (#43): pages of events with their filters and cursor, the CSV export, and the users and catalogs the resolver names. |
|
Package authz holds the one rule set that decides who may touch connections and catalogs.
|
Package authz holds the one rule set that decides who may touch connections and catalogs. |
|
Package bigateway serves Trino's HTTP client protocol to external BI tools through Baleia (ADR 0017).
|
Package bigateway serves Trino's HTTP client protocol to external BI tools through Baleia (ADR 0017). |
|
Package bindings is the binder contract (#80, docs/adr/0002): a binding makes a source catalog visible inside a federated engine.
|
Package bindings is the binder contract (#80, docs/adr/0002): a binding makes a source catalog visible inside a federated engine. |
|
stored
Package stored builds the projection of a stored binding: its catalog's connection, decrypted, through the engine's binder.
|
Package stored builds the projection of a stored binding: its catalog's connection, decrypted, through the engine's binder. |
|
trino
Package catalogs implements the projection of catalog domain rows into the flat trino_catalog_registry rows consumed by the baleia-trino-catalog-store Trino plugin, and a byte-for-byte replica of Trino's FileCatalogStore.computeCatalogVersion so that the Baleia backend and the plugin Java side can agree on a stable catalog_version hash.
|
Package catalogs implements the projection of catalog domain rows into the flat trino_catalog_registry rows consumed by the baleia-trino-catalog-store Trino plugin, and a byte-for-byte replica of Trino's FileCatalogStore.computeCatalogVersion so that the Baleia backend and the plugin Java side can agree on a stable catalog_version hash. |
|
Package bootstrap applies deploy-time state that must not live in a committed migration, such as secrets that come from the environment.
|
Package bootstrap applies deploy-time state that must not live in a committed migration, such as secrets that come from the environment. |
|
Package catalogidentity decides which bearer token a query session hands to catalog managers set to per-user identity (#648, docs/adr/0015):
|
Package catalogidentity decides which bearer token a query session hands to catalog managers set to per-user identity (#648, docs/adr/0015): |
|
Package catalogs opens the stored credentials of catalog connections.
|
Package catalogs opens the stored credentials of catalog connections. |
|
admin
Package admin edits and retires catalogs and reports what depends on them (#360): renaming, retiring a managed catalog, its namespace and table counts, and the impact of removing a catalog or a connection.
|
Package admin edits and retires catalogs and reports what depends on them (#360): renaming, retiring a managed catalog, its namespace and table counts, and the impact of removing a catalog or a connection. |
|
conns
Package conns stores catalog connections (#360): it lists the ones a user may see, creates, updates and deletes them.
|
Package conns stores catalog connections (#360): it lists the ones a user may see, creates, updates and deletes them. |
|
topology
Package topology reads and edits how catalogs sit on engines (#38, #364): engines, Trino clusters, bindings and their status, catalogs by connection, grant or name, and a catalog's sync state and stored columns.
|
Package topology reads and edits how catalogs sit on engines (#38, #364): engines, Trino clusters, bindings and their status, catalogs by connection, grant or name, and a catalog's sync state and stored columns. |
|
Package command owns the process lifecycle the API and worker binaries share: configuration, logging, the cgroup heap cap, signal handling and the shared dependency graph.
|
Package command owns the process lifecycle the API and worker binaries share: configuration, logging, the cgroup heap cap, signal handling and the shared dependency graph. |
|
Package connections is the provider contract for connections: credentials and an endpoint for one external system (docs/adr/0002).
|
Package connections is the provider contract for connections: credentials and an endpoint for one external system (docs/adr/0002). |
|
clickhouse
Package clickhouse is the ClickHouse provider.
|
Package clickhouse is the ClickHouse provider. |
|
conntest
Package conntest holds checks shared by the provider integration tests.
|
Package conntest holds checks shared by the provider integration tests. |
|
flightsql
Package flightsql is the Arrow Flight SQL provider: any server that speaks Flight SQL (Dremio, DuckDB, InfluxDB, Arrow's own servers...).
|
Package flightsql is the Arrow Flight SQL provider: any server that speaks Flight SQL (Dremio, DuckDB, InfluxDB, Arrow's own servers...). |
|
glue
Package glue is the AWS Glue Data Catalog provider: a metastore that holds table definitions for Iceberg, Hive and Delta Lake tables whose data sits in object storage.
|
Package glue is the AWS Glue Data Catalog provider: a metastore that holds table definitions for Iceberg, Hive and Delta Lake tables whose data sits in object storage. |
|
hive
Package hive is the Hive Metastore (HMS) provider: a Thrift metastore that holds table definitions for Iceberg, Hive and Delta Lake tables whose data sits in object storage.
|
Package hive is the Hive Metastore (HMS) provider: a Thrift metastore that holds table definitions for Iceberg, Hive and Delta Lake tables whose data sits in object storage. |
|
iceberg
Package iceberg is the generic Iceberg REST catalog provider.
|
Package iceberg is the generic Iceberg REST catalog provider. |
|
icebergrest
Package icebergrest is the Iceberg REST catalog client shared by the providers that serve that API (Polaris, Nessie, generic REST).
|
Package icebergrest is the Iceberg REST catalog client shared by the providers that serve that API (Polaris, Nessie, generic REST). |
|
kafka
Package kafka is the Apache Kafka provider (#1064): a Kafka cluster exposed as a federated, read-only source through Trino's Kafka connector.
|
Package kafka is the Apache Kafka provider (#1064): a Kafka cluster exposed as a federated, read-only source through Trino's Kafka connector. |
|
lakekeeper
Package lakekeeper is the Lakekeeper Iceberg REST catalog provider: an Apache-licensed, Rust-native implementation of the Iceberg REST spec.
|
Package lakekeeper is the Lakekeeper Iceberg REST catalog provider: an Apache-licensed, Rust-native implementation of the Iceberg REST spec. |
|
mysql
Package mysql is the MySQL provider.
|
Package mysql is the MySQL provider. |
|
nessie
Package nessie is the Project Nessie provider.
|
Package nessie is the Project Nessie provider. |
|
oracle
Package oracle is the Oracle Database provider.
|
Package oracle is the Oracle Database provider. |
|
planned
Package planned declares connection kinds that are known but not implemented yet, so the API can list them and explain why they cannot be created (ADR 0021 D.9).
|
Package planned declares connection kinds that are known but not implemented yet, so the API can list them and explain why they cannot be created (ADR 0021 D.9). |
|
polaris
Package polaris is the Apache Polaris provider: an Iceberg REST catalog under <url>/api/catalog with OAuth2 client credentials and a management API that lists catalogs.
|
Package polaris is the Apache Polaris provider: an Iceberg REST catalog under <url>/api/catalog with OAuth2 client credentials and a management API that lists catalogs. |
|
postgresql
Package postgresql is the PostgreSQL provider.
|
Package postgresql is the PostgreSQL provider. |
|
providers
Package providers builds the registry of every provider.
|
Package providers builds the registry of every provider. |
|
sqlite
Package sqlite is the SQLite provider (modernc.org/sqlite, pure Go).
|
Package sqlite is the SQLite provider (modernc.org/sqlite, pure Go). |
|
sqlserver
Package sqlserver is the SQL Server provider.
|
Package sqlserver is the SQL Server provider. |
|
synthetic
Package synthetic declares the endpointless Trino catalog types Baleia can register without an external endpoint or credentials (ADR 0021 D.7): memory, Black Hole, Faker, JMX, TPC-H and TPC-DS.
|
Package synthetic declares the endpointless Trino catalog types Baleia can register without an external endpoint or credentials (ADR 0021 D.7): memory, Black Hole, Faker, JMX, TPC-H and TPC-DS. |
|
trino
Package trino is the Trino provider: a coordinator Baleia federates queries on (engine kind "trino") and whose catalogs it can browse through information_schema.
|
Package trino is the Trino provider: a coordinator Baleia federates queries on (engine kind "trino") and whose catalogs it can browse through information_schema. |
|
unity
Package unity is the Unity Catalog provider.
|
Package unity is the Unity Catalog provider. |
|
Package content owns the writes to saved content (#34, ADR 0013).
|
Package content owns the writes to saved content (#34, ADR 0013). |
|
history
Package history reads the versions and the trash of saved content (#34): saved queries, semantic metrics and semantic models.
|
Package history reads the versions and the trash of saved content (#34): saved queries, semantic metrics and semantic models. |
|
search
Package search finds a workspace's saved content by name or slug: folders, saved queries, semantic metrics and semantic models, among those the user can see (#131).
|
Package search finds a workspace's saved content by name or slug: folders, saved queries, semantic metrics and semantic models, among those the user can see (#131). |
|
Package crypto seals connection credentials for storage.
|
Package crypto seals connection credentials for storage. |
|
Package datapolicy holds Baleia's row filters and column masks (ADR 0028): the policies an admin authors, the restricted expression language they are written in, and the checks a draft passes before it can be published.
|
Package datapolicy holds Baleia's row filters and column masks (ADR 0028): the policies an admin authors, the restricted expression language they are written in, and the checks a draft passes before it can be published. |
|
viewsql
Package viewsql resolves what a Trino view reads, for the data policy checks over SECURITY DEFINER views (ADR 0028).
|
Package viewsql resolves what a Trino view reads, for the data policy checks over SECURITY DEFINER views (ADR 0028). |
|
The structs below are the row shapes of Baleia's own tables.
|
The structs below are the row shapes of Baleia's own tables. |
|
assistant
The structs below are the assistant row shapes.
|
The structs below are the assistant row shapes. |
|
Package dialect is how Baleia writes SQL for each engine kind: quoting, qualification, literals, statement splitting, previews, metadata queries and the SQL-generation primitives of the semantic layer (#14, #33, #91).
|
Package dialect is how Baleia writes SQL for each engine kind: quoting, qualification, literals, statement splitting, previews, metadata queries and the SQL-generation primitives of the semantic layer (#14, #33, #91). |
|
Package engines lists Baleia's engine kinds (#364).
|
Package engines lists Baleia's engine kinds (#364). |
|
manage
Package manage stores direct engines (#364): it lists them, creates one with the native catalogs of its connection, enables or disables it, deletes it when nothing depends on it, and lists its bindings.
|
Package manage stores direct engines (#364): it lists them, creates one with the native catalogs of its connection, enables or disables it, deletes it when nothing depends on it, and lists its bindings. |
|
Package execscope computes the workspace catalog scope a user-identity session may reach (ADR 0018 §5).
|
Package execscope computes the workspace catalog scope a user-identity session may reach (ADR 0018 §5). |
|
Package identity maps directory groups to Baleia roles and teams.
|
Package identity maps directory groups to Baleia roles and teams. |
|
account
Package account is the signed-in user's own account: reading it, editing the profile and changing the password.
|
Package account is the signed-in user's own account: reading it, editing the profile and changing the password. |
|
apikeys
Package apikeys manages a user's personal API keys.
|
Package apikeys manages a user's personal API keys. |
|
bikeys
Package bikeys issues and validates workspace-bound BI keys (ADR 0017).
|
Package bikeys issues and validates workspace-bound BI keys (ADR 0017). |
|
idptoken
Package idptoken keeps the identity-provider tokens of each user's latest OIDC sign-in (#648).
|
Package idptoken keeps the identity-provider tokens of each user's latest OIDC sign-in (#648). |
|
ldap
Package ldap authenticates users against an LDAP directory (AD or OpenLDAP).
|
Package ldap authenticates users against an LDAP directory (AD or OpenLDAP). |
|
login
Package login verifies sign-in credentials: a local password or a directory (LDAP) bind.
|
Package login verifies sign-in credentials: a local password or a directory (LDAP) bind. |
|
oidclogin
Package oidclogin runs the OIDC authorization-code login (#278): it starts an attempt bound to a state, a PKCE verifier and a nonce, and finishes it by exchanging the code and provisioning the account.
|
Package oidclogin runs the OIDC authorization-code login (#278): it starts an attempt bound to a state, a PKCE verifier and a nonce, and finishes it by exchanging the code and provisioning the account. |
|
passwordreset
Package passwordreset runs the e-mailed password reset (#51): a single-use link whose token is stored only as a hash, and a confirmation that ends every session of the account.
|
Package passwordreset runs the e-mailed password reset (#51): a single-use link whose token is stored only as a hash, and a confirmation that ends every session of the account. |
|
providers
Package providers manages the OIDC and LDAP identity providers (#280, #286).
|
Package providers manages the OIDC and LDAP identity providers (#280, #286). |
|
provision
Package provision applies a mapped directory identity to Baleia accounts: the team memberships an LDAP or OIDC login grants.
|
Package provision applies a mapped directory identity to Baleia accounts: the team memberships an LDAP or OIDC login grants. |
|
session
Package session issues and rotates sign-in sessions: a short-lived access token and a refresh token whose rotations share a family (#51).
|
Package session issues and rotates sign-in sessions: a short-lived access token and a refresh token whose rotations share a family (#51). |
|
setup
Package setup creates the first administrator of a fresh installation.
|
Package setup creates the first administrator of a fresh installation. |
|
users
Package users is the administration of accounts: listing, inviting, changing roles, removing, and suspending or reinstating (#258).
|
Package users is the administration of accounts: listing, inviting, changing roles, removing, and suspending or reinstating (#258). |
|
Package mail renders and sends the small set of transactional e-mails (#67).
|
Package mail renders and sends the small set of transactional e-mails (#67). |
|
Package mcp exposes Baleia's governed metadata and query execution over the Model Context Protocol (#58).
|
Package mcp exposes Baleia's governed metadata and query execution over the Model Context Protocol (#58). |
|
Package metadata keeps the physical metadata snapshots (#15): namespaces, tables and columns per logical catalog, read from the catalog's own source (catalog manager, database driver) or, when it has none Baleia can read, introspected through an engine.
|
Package metadata keeps the physical metadata snapshots (#15): namespaces, tables and columns per logical catalog, read from the catalog's own source (catalog manager, database driver) or, when it has none Baleia can read, introspected through an engine. |
|
browse
Package browse reads the stored metadata of the catalogs granted to a workspace (#18): catalogs, namespaces, a page of tables, one table with its columns and docs, a search, and a catalog's sync runs.
|
Package browse reads the stored metadata of the catalogs granted to a workspace (#18): catalogs, namespaces, a page of tables, one table with its columns and docs, a search, and a catalog's sync runs. |
|
typemap
Package typemap renders a stored column type (native_type, in its source's type system) the way an engine's dialect spells it, for the binding a user browses through (#15, #18).
|
Package typemap renders a stored column type (native_type, in its source's type system) the way an engine's dialect spells it, for the binding a user browses through (#15, #18). |
|
Package metrics is Baleia's metrics catalog (#87): one Prometheus registry per process, constructors for the catalog's metrics and the /metrics handler.
|
Package metrics is Baleia's metrics catalog (#87): one Prometheus registry per process, constructors for the catalog's metrics and the /metrics handler. |
|
Package monitoring reads what the engines report and runs Iceberg table maintenance (#117): cluster snapshots, query snapshots, table health, and maintenance runs with their validation and binding choice.
|
Package monitoring reads what the engines report and runs Iceberg table maintenance (#117): cluster snapshots, query snapshots, table health, and maintenance runs with their validation and binding choice. |
|
events
Package events fans monitoring changes out to connected SSE clients (#733).
|
Package events fans monitoring changes out to connected SSE clients (#733). |
|
maintenance
Package maintenance holds the per-table Iceberg maintenance parameters and decides which operation is due on a table (#500).
|
Package maintenance holds the per-table Iceberg maintenance parameters and decides which operation is due on a table (#500). |
|
queryevents
Package queryevents ingests the query events Trino's HTTP event listener posts (#406).
|
Package queryevents ingests the query events Trino's HTTP event listener posts (#406). |
|
Package obs holds the observability plumbing shared by the API and the worker.
|
Package obs holds the observability plumbing shared by the API and the worker. |
|
Package oidctest provides an in-process fake OIDC provider for tests.
|
Package oidctest provides an in-process fake OIDC provider for tests. |
|
ops
|
|
|
signals
Package signals reads the operational signals behind the system status page (#291) and the attention list (#261): engines, binding states, metadata freshness, reconcile runs, audit export lag, plugin confirmation, and the rows that need someone's attention.
|
Package signals reads the operational signals behind the system status page (#291) and the attention list (#261): engines, binding states, metadata freshness, reconcile runs, audit export lag, plugin confirmation, and the rows that need someone's attention. |
|
persistence
|
|
|
partitioning
Package partitioning isolates the physical partitioning of append-only tables behind a seam (ADR 0023, which amends ADR 0020).
|
Package partitioning isolates the physical partitioning of append-only tables behind a seam (ADR 0023, which amends ADR 0020). |
|
Package policy decides what users may do.
|
Package policy decides what users may do. |
|
Package queryengine is the contract between Baleia and the engines that run SQL (docs/adr/0002, 0006).
|
Package queryengine is the contract between Baleia and the engines that run SQL (docs/adr/0002, 0006). |
|
clickhouse
Package clickhouse is the ClickHouse direct engine (#83): Baleia runs SQL on a ClickHouse server itself, without Trino, over the HTTP interface.
|
Package clickhouse is the ClickHouse direct engine (#83): Baleia runs SQL on a ClickHouse server itself, without Trino, over the HTTP interface. |
|
conformance
Package conformance is the suite every engine adapter must pass unchanged (#20): fake now, Trino and the direct engines as they land.
|
Package conformance is the suite every engine adapter must pass unchanged (#20): fake now, Trino and the direct engines as they land. |
|
fake
Package fake is a scripted engine for tests.
|
Package fake is a scripted engine for tests. |
|
flightsql
Package flightsql is the Arrow Flight SQL direct engine (#83): one adapter reaches any Flight SQL server (Dremio, DuckDB, InfluxDB, Doris/StarRocks, …).
|
Package flightsql is the Arrow Flight SQL direct engine (#83): one adapter reaches any Flight SQL server (Dremio, DuckDB, InfluxDB, Doris/StarRocks, …). |
|
flightsql/testserver
Package testserver is an in-process Arrow Flight SQL server for the flightsql engine tests (#83).
|
Package testserver is an in-process Arrow Flight SQL server for the flightsql engine tests (#83). |
|
mysql
Package mysql is the MySQL/MariaDB direct engine (#82, PR 2): Baleia runs SQL on a MySQL or MariaDB connection itself, without Trino.
|
Package mysql is the MySQL/MariaDB direct engine (#82, PR 2): Baleia runs SQL on a MySQL or MariaDB connection itself, without Trino. |
|
oracle
Package oracle is the Oracle Database direct engine (#81, PR 2): Baleia runs SQL on an Oracle connection itself, without Trino.
|
Package oracle is the Oracle Database direct engine (#81, PR 2): Baleia runs SQL on an Oracle connection itself, without Trino. |
|
postgresql
Package postgresql is the PostgreSQL direct engine (#82): Baleia runs SQL on a PostgreSQL connection itself, without Trino.
|
Package postgresql is the PostgreSQL direct engine (#82): Baleia runs SQL on a PostgreSQL connection itself, without Trino. |
|
sqlite
Package sqlite is the SQLite direct engine (#83): Baleia runs SQL on a SQLite database file itself, without Trino.
|
Package sqlite is the SQLite direct engine (#83): Baleia runs SQL on a SQLite database file itself, without Trino. |
|
sqlserver
Package sqlserver is the SQL Server direct engine (#81, PR 1): Baleia runs SQL on a SQL Server connection itself, without Trino.
|
Package sqlserver is the SQL Server direct engine (#81, PR 1): Baleia runs SQL on a SQL Server connection itself, without Trino. |
|
trino
Package trino is the Trino adapter of the engine contract (#25).
|
Package trino is the Trino adapter of the engine contract (#25). |
|
Package queryprofile parses the payload Lens stores for a Trino query (#532) into the neutral profile the API renders.
|
Package queryprofile parses the payload Lens stores for a Trino query (#532) into the neutral profile the API renders. |
|
Package realtime is Baleia's shared cross-replica backbone (ADR 0022).
|
Package realtime is Baleia's shared cross-replica backbone (ADR 0022). |
|
Package results reads stored Arrow results as JSON rows for agent tools (#58).
|
Package results reads stored Arrow results as JSON rows for agent tools (#58). |
|
Package retrievers materializes a SQL definition into an Iceberg table on a cron schedule (#118).
|
Package retrievers materializes a SQL definition into an Iceberg table on a cron schedule (#118). |
|
schedule
Package schedule parses retriever cron expressions: five standard fields, an optional CRON_TZ=<IANA> prefix, and a minimum interval between runs (#118, #139).
|
Package schedule parses retriever cron expressions: five standard fields, an optional CRON_TZ=<IANA> prefix, and a minimum interval between runs (#118, #139). |
|
Package search is Baleia's portable text matching (#798): folding, tokenizing and scoring a query against stored names, comments and descriptions in Go, so search needs no database extension (ADR 0020).
|
Package search is Baleia's portable text matching (#798): folding, tokenizing and scoring a query against stored names, comments and descriptions in Go, so search needs no database extension (ADR 0020). |
|
Package semantic is the v1 semantic layer (#33, D9 / ADR 0012): structured, per-dialect metric definitions rendered through internal/dialect's SQL-generation primitives.
|
Package semantic is the v1 semantic layer (#33, D9 / ADR 0012): structured, per-dialect metric definitions rendered through internal/dialect's SQL-generation primitives. |
|
compiler
Package compiler turns an explore query into SQL for one binding's dialect (#91).
|
Package compiler turns an explore query into SQL for one binding's dialect (#91). |
|
docs
Package docs documents tables and columns of a workspace's catalogs (#116): a description, tags, an owner and a certification.
|
Package docs documents tables and columns of a workspace's catalogs (#116): a description, tags, an owner and a certification. |
|
metrics
Package metrics manages a workspace's semantic metrics (#115): structured definitions on a catalog table, kept in spaces and versioned through content.Service (#34, #40).
|
Package metrics manages a workspace's semantic metrics (#115): structured definitions on a catalog table, kept in spaces and versioned through content.Service (#34, #40). |
|
models
Package models manages a workspace's semantic models (#219): a table's dimensions, measures and joins, kept in spaces and versioned through content.Service (#34).
|
Package models manages a workspace's semantic models (#219): a table's dimensions, measures and joins, kept in spaces and versioned through content.Service (#34). |
|
Package semanticcatalog is the contract of the workspace semantic catalog that external catalog connectors read through the BI gateway (ADR 0030): the semantic models and metrics a BI key's owner can see, with their physical source tables named as the key's engine names them.
|
Package semanticcatalog is the contract of the workspace semantic catalog that external catalog connectors read through the BI gateway (ADR 0030): the semantic models and metrics a BI key's owner can see, with their physical source tables named as the key's engine names them. |
|
Package slug makes the portable slugs that name spaces, folders, saved queries and semantic content (ADR 0013).
|
Package slug makes the portable slugs that name spaces, folders, saved queries and semantic content (ADR 0013). |
|
Package sqlref extracts the tables, columns and equi-joins a statement reads and writes from the sqlglot AST (#538, #625).
|
Package sqlref extracts the tables, columns and equi-joins a statement reads and writes from the sqlglot AST (#538, #625). |
|
Package store opens Baleia's own metadata database through GORM (ADR 0020).
|
Package store opens Baleia's own metadata database through GORM (ADR 0020). |
|
model
Package model is Baleia's store schema: one GORM model per table (ADR 0020).
|
Package model is Baleia's store schema: one GORM model per table (ADR 0020). |
|
repo
Package repo is the GORM-backed persistence for Baleia's store (ADR 0020).
|
Package repo is the GORM-backed persistence for Baleia's store (ADR 0020). |
|
temporal
|
|
|
dial
Package dial connects to Temporal at boot, retrying for a while instead of failing on the first refused connection (#87): a process that cannot reach Temporal exits with an error log, which a crash loop makes visible.
|
Package dial connects to Temporal at boot, retrying for a while instead of failing on the first refused connection (#87): a process that cannot reach Temporal exits with an error log, which a crash loop makes visible. |
|
schedules
Package schedules ensures recurring Temporal workflows run on Schedules — the only recurring-job mechanism in the codebase.
|
Package schedules ensures recurring Temporal workflows run on Schedules — the only recurring-job mechanism in the codebase. |
|
schedulespecs
Package schedulespecs is the single list of recurring Temporal Schedules the worker ensures.
|
Package schedulespecs is the single list of recurring Temporal Schedules the worker ensures. |
|
workflows
Determinism: workflow code here never calls time.Now(), reads the environment, lets map iteration drive control flow, or starts goroutines.
|
Determinism: workflow code here never calls time.Now(), reads the environment, lets map iteration drive control flow, or starts goroutines. |
|
Package testdb gives tests a throwaway database migrated to the latest version, on the server of BALEIA_TEST_DATABASE_URL (a role allowed to CREATE DATABASE).
|
Package testdb gives tests a throwaway database migrated to the latest version, on the server of BALEIA_TEST_DATABASE_URL (a role allowed to CREATE DATABASE). |
|
monitor
Package monitor is the Trino cluster monitor Lens reads (#20): the query list and cluster stats of a coordinator.
|
Package monitor is the Trino cluster monitor Lens reads (#20): the query list and cluster stats of a coordinator. |
|
Package trinoidentity maps a Baleia user to the Trino identity their queries run under.
|
Package trinoidentity maps a Baleia user to the Trino identity their queries run under. |
|
Package version holds the Baleia build version, injected at build time via -ldflags "-X github.com/maltzsama/baleia/internal/version.Version=...".
|
Package version holds the Baleia build version, injected at build time via -ldflags "-X github.com/maltzsama/baleia/internal/version.Version=...". |
|
Package webhooks defines the outbound event envelope and its constructors.
|
Package webhooks defines the outbound event envelope and its constructors. |
|
workbench
|
|
|
executions
Package executions runs SQL on an engine target through the query execution workflow, and reads, cancels and lists the runs.
|
Package executions runs SQL on an engine target through the query execution workflow, and reads, cancels and lists the runs. |
|
folders
Package folders organizes saved queries into folders within a space.
|
Package folders organizes saved queries into folders within a space. |
|
savedqueries
Package savedqueries manages the saved queries of a workspace: listing and reading them, and the rules around a write (folder, slug, unique name).
|
Package savedqueries manages the saved queries of a workspace: listing and reading them, and the rules around a write (folder, slug, unique name). |
|
Package workerapp wires the Temporal worker: its activities, workflows, schedules and process listeners.
|
Package workerapp wires the Temporal worker: its activities, workflows, schedules and process listeners. |
|
Package workload holds the parts of workload management (#399, ADR 0014) that are pure policy: the default capacities and the rule that a missing per-engine row falls back to them.
|
Package workload holds the parts of workload management (#399, ADR 0014) that are pure policy: the default capacities and the rule that a missing per-engine row falls back to them. |
|
resourcegroups
Package resourcegroups publishes the generated Trino resource-group document (#598) into the tables Trino's database resource group manager reads (#599).
|
Package resourcegroups publishes the generated Trino resource-group document (#598) into the tables Trino's database resource group manager reads (#599). |
|
resourcegroups/publish
Package publish writes the generated Trino resource-group document through the narrow Writer surface the store implements (ADR 0020).
|
Package publish writes the generated Trino resource-group document through the narrow Writer surface the store implements (ADR 0020). |
|
workspaces
|
|
|
access
Package access answers what a caller can reach: whether a user, or an agent acting for one, may use a workspace (#59), the workspace itself, its query targets (#16), the principals it can grant to (#113), a user's Trino identity, and the navigation flags and global actions of /auth/me (#104).
|
Package access answers what a caller can reach: whether a user, or an agent acting for one, may use a workspace (#59), the workspace itself, its query targets (#16), the principals it can grant to (#113), a user's Trino identity, and the navigation flags and global actions of /auth/me (#104). |
|
manage
Package manage stores workspaces and their catalog grants (#33, #36): listing a user's workspaces, creating, updating with the default target, deleting with the personal and running-execution rules, granting and revoking catalogs, and the impact of a delete or a revoke.
|
Package manage stores workspaces and their catalog grants (#33, #36): listing a user's workspaces, creating, updating with the default target, deleting with the personal and running-execution rules, granting and revoking catalogs, and the impact of a delete or a revoke. |
|
spaces
Package spaces stores a workspace's spaces and their access lists (#131): listing, creating with the creator as manager, updating, deleting with the default-space and content rules, and setting or removing members.
|
Package spaces stores a workspace's spaces and their access lists (#131): listing, creating with the creator as manager, updating, deleting with the default-space and content rules, and setting or removing members. |
|
teams
Package teams stores teams and their members (#33).
|
Package teams stores teams and their members (#33). |
|
Package wsticket issues short-lived, single-use tickets for WebSocket authentication so the JWT never appears in a URL (#26).
|
Package wsticket issues short-lived, single-use tickets for WebSocket authentication so the JWT never appears in a URL (#26). |
Click to show internal directories.
Click to hide internal directories.