Documentation
¶
Overview ¶
Package tmi embeds static assets that the TMI server serves under /static.
The assets (favicons, web manifest icons, logos, and OAuth/SAML provider sign-in icons) are embedded into the binary rather than read from a relative ./static directory at runtime. The server runs from a Chainguard "static" container that contains only the binary (see Dockerfile.server), so a relative ./static path resolves to nothing and every static route 404s in production — including the provider sign-in icons (#498). Embedding keeps the image binary-only while making the assets available in every deployment topology regardless of the working directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var StaticFS embed.FS
StaticFS holds the contents of the static/ directory, embedded at build time. Serve it under /static via fs.Sub(StaticFS, "static").
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides storage and HTTP handlers for the TMI service.
|
Package api provides storage and HTTP handlers for the TMI service. |
|
models
Package models - hooks.go contains GORM lifecycle hooks for validation.
|
Package models - hooks.go contains GORM lifecycle hooks for validation. |
|
notifications
Package notifications provides database notification services that work across different database backends (PostgreSQL and Oracle).
|
Package notifications provides database notification services that work across different database backends (PostgreSQL and Oracle). |
|
platform/v1alpha1
Package v1alpha1 contains the TMIComponent custom resource API for the TMI Component Platform.
|
Package v1alpha1 contains the TMIComponent custom resource API for the TMI Component Platform. |
|
seed
Package seed provides database seeding for required initial data.
|
Package seed provides database seeding for required initial data. |
|
validation
Package validation provides cross-database validation for TMI models.
|
Package validation provides cross-database validation for TMI models. |
|
Package auth — /me/identities/link/* handlers (#383).
|
Package auth — /me/identities/link/* handlers (#383). |
|
repository
Package repository provides database repository interfaces and implementations for the auth service.
|
Package repository provides database repository interfaces and implementations for the auth service. |
|
cmd
|
|
|
chunkembed
command
Command tmi-chunk-embed is the chunk-and-embed worker of the TMI Component Platform (issue #347).
|
Command tmi-chunk-embed is the chunk-and-embed worker of the TMI Component Platform (issue #347). |
|
component-controller
command
Command component-controller runs the TMI Component Platform controller.
|
Command component-controller runs the TMI Component Platform controller. |
|
dbtool
command
cmd/dbtool/health.go
|
cmd/dbtool/health.go |
|
dedup-group-members
command
Package main implements a one-off utility to remove duplicate rows from the group_members table.
|
Package main implements a one-off utility to remove duplicate rows from the group_members table. |
|
extractor
command
Command tmi-extractor is the sandboxed document-parse worker of the TMI Component Platform (issue #347).
|
Command tmi-extractor is the sandboxed document-parse worker of the TMI Component Platform (issue #347). |
|
genconfig
command
Command genconfig writes config-example.yml from the classification registry.
|
Command genconfig writes config-example.yml from the classification registry. |
|
genconfigdocs
command
Command genconfigdocs writes config-reference.md from the classification registry.
|
Command genconfigdocs writes config-reference.md from the classification registry. |
|
migrate
command
Package main implements the migrate CLI tool for TMI database schema management.
|
Package main implements the migrate CLI tool for TMI database schema management. |
|
server
command
|
|
|
worker-probe
command
Command worker-probe is a stub TMI worker.
|
Command worker-probe is a stub TMI worker. |
|
internal
|
|
|
config/bootstrap
Package bootstrap provides the minimal, environment-only configuration a TMI worker component needs to start and reach the point where it can accept a job.
|
Package bootstrap provides the minimal, environment-only configuration a TMI worker component needs to start and reach the point where it can accept a job. |
|
configsecrets
Package configsecrets bridges internal/config and internal/secrets.
|
Package configsecrets bridges internal/config and internal/secrets. |
|
crypto
Package crypto provides encryption utilities for TMI.
|
Package crypto provides encryption utilities for TMI. |
|
dbcheck
Package dbcheck provides utilities for classifying database errors.
|
Package dbcheck provides utilities for classifying database errors. |
|
dberrors
Package dberrors provides typed database error classification.
|
Package dberrors provides typed database error classification. |
|
dbschema
Package dbschema: global ThreatModel alias sequence (#452).
|
Package dbschema: global ThreatModel alias sequence (#452). |
|
periodic
Package periodic provides a small helper for ticker-driven background maintenance loops (e.g.
|
Package periodic provides a small helper for ticker-driven background maintenance loops (e.g. |
|
platform/controller
Package controller implements the TMIComponent reconciler for the TMI Component Platform.
|
Package controller implements the TMIComponent reconciler for the TMI Component Platform. |
|
safehttp
Package safehttp provides the shared SSRF-validation and dial-time IP-pinning core for server-originated outbound HTTP.
|
Package safehttp provides the shared SSRF-validation and dial-time IP-pinning core for server-originated outbound HTTP. |
|
secrets
Package secrets provides a unified interface for retrieving secrets from various providers.
|
Package secrets provides a unified interface for retrieving secrets from various providers. |
|
unicodecheck
Package unicodecheck provides consolidated Unicode validation for security-sensitive input.
|
Package unicodecheck provides consolidated Unicode validation for security-sensitive input. |
|
worker
Package worker is the shared runtime for TMI Component Platform worker binaries (tmi-extractor, tmi-chunk-embed).
|
Package worker is the shared runtime for TMI Component Platform worker binaries (tmi-extractor, tmi-chunk-embed). |
|
wwwauth
Package wwwauth builds RFC 6750 (OAuth 2.0 Bearer Token) WWW-Authenticate response headers.
|
Package wwwauth builds RFC 6750 (OAuth 2.0 Bearer Token) WWW-Authenticate response headers. |
|
pkg
|
|
|
extract
Package extract is the framework-free document/content extraction library.
|
Package extract is the framework-free document/content extraction library. |
|
jobenvelope
Package jobenvelope defines the single job-envelope schema used by every stage of the TMI Component Platform extraction pipeline.
|
Package jobenvelope defines the single job-envelope schema used by every stage of the TMI Component Platform extraction pipeline. |
|
test
|
|
|
testdb
Package testdb provides direct database access for integration tests.
|
Package testdb provides direct database access for integration tests. |