Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin exposes tempogate's backend-callable integration-key API: a service can POST to /admin/keys to mint an expiring JWT scoped to a single namespace+role, retrieve metadata, and revoke.
|
Package admin exposes tempogate's backend-callable integration-key API: a service can POST to /admin/keys to mint an expiring JWT scoped to a single namespace+role, retrieve metadata, and revoke. |
|
Package api is tempogate's HTTP surface.
|
Package api is tempogate's HTTP surface. |
|
requestid
Package requestid tags every HTTP request with a server-generated id so a generic error shown to a client can be matched to the detailed log line an operator reads.
|
Package requestid tags every HTTP request with a server-generated id so a generic error shown to a client can be matched to the detailed log line an operator reads. |
|
Package app is the fx composition root for the tempogate binary.
|
Package app is the fx composition root for the tempogate binary. |
|
Package authz decides which Temporal permissions a signed-in person's access token carries.
|
Package authz decides which Temporal permissions a signed-in person's access token carries. |
|
Package buildinfo exposes ldflag-injected build metadata.
|
Package buildinfo exposes ldflag-injected build metadata. |
|
Package cli is the engineer-facing client half of tempogate: it talks to a running tempogate issuer over its public OIDC/OAuth2 surface rather than sharing any server state.
|
Package cli is the engineer-facing client half of tempogate: it talks to a running tempogate issuer over its public OIDC/OAuth2 surface rather than sharing any server state. |
|
servercmd
Package servercmd holds the server-bound subcommands (serve, migrate, keys, sessions, gen-oas, authz): the ones that need the state store and the OIDC/API stack.
|
Package servercmd holds the server-bound subcommands (serve, migrate, keys, sessions, gen-oas, authz): the ones that need the state store and the OIDC/API stack. |
|
internal
|
|
|
clock
Package clock is the application's wall clock.
|
Package clock is the application's wall clock. |
|
Package log provides a zap-backed logger and a slog handler that share the same core, so callers can pick either API and still emit through one sink.
|
Package log provides a zap-backed logger and a slog handler that share the same core, so callers can pick either API and still emit through one sink. |
|
Package observe is tempogate's own telemetry contract: the generic interfaces every package records its metrics and spans through, and typed instruments on top of them.
|
Package observe is tempogate's own telemetry contract: the generic interfaces every package records its metrics and spans through, and typed instruments on top of them. |
|
observetest
Package observetest is an in-memory observe.Meter and observe.Tracer for asserting what a package declares, records and traces.
|
Package observetest is an in-memory observe.Meter and observe.Tracer for asserting what a package declares, records and traces. |
|
Package oidc is the OIDC provider surface tempogate exposes to downstream clients (Temporal Web UI, the CLI loopback server).
|
Package oidc is the OIDC provider surface tempogate exposes to downstream clients (Temporal Web UI, the CLI loopback server). |
|
connector/google
Package google is the Google connector: the upstream leg of a login, behind oidc.Connector.
|
Package google is the Google connector: the upstream leg of a login, behind oidc.Connector. |
|
connector/upstreamhttp
Package upstreamhttp is the HTTP client every connector calls its upstream through, so each call is bounded the same way whatever the protocol.
|
Package upstreamhttp is the HTTP client every connector calls its upstream through, so each call is bounded the same way whatever the protocol. |
|
Package perms is the shared domain type tempogate uses to describe what a token can do, before that description is serialized into the JWT's `permissions` claim.
|
Package perms is the shared domain type tempogate uses to describe what a token can do, before that description is serialized into the JWT's `permissions` claim. |
|
Package ratelimit is a small in-process, per-key token-bucket limiter with bounded memory.
|
Package ratelimit is a small in-process, per-key token-bucket limiter with bounded memory. |
|
Package redact keeps declared secrets and personal data out of what tempogate exports.
|
Package redact keeps declared secrets and personal data out of what tempogate exports. |
|
Package state documents the state-store contract.
|
Package state documents the state-store contract. |
|
internal/changefeed
Package changefeed is the in-process fan-out behind every backend's keys.ChangeFeed: SQLite publishes the changes written through its own *Store, Postgres the notifications its LISTEN connection receives.
|
Package changefeed is the in-process fan-out behind every backend's keys.ChangeFeed: SQLite publishes the changes written through its own *Store, Postgres the notifications its LISTEN connection receives. |
|
internal/instrument
Package instrument is what both state backends record about their operations, declared once so state/sqlite and state/postgres expose the same series and spans.
|
Package instrument is what both state backends record about their operations, declared once so state/sqlite and state/postgres expose the same series and spans. |
|
internal/migration
Package migration is the dialect-neutral half of the state backends' schema runners: reading the embedded NNNN_name.sql files, ordering them, and judging a database's recorded versions against them.
|
Package migration is the dialect-neutral half of the state backends' schema runners: reading the embedded NNNN_name.sql files, ordering them, and judging a database's recorded versions against them. |
|
internal/secret
Package secret is how every backend stores a bearer secret: as its hash, so a copy of the database holds nothing a client could present.
|
Package secret is how every backend stores a bearer secret: as its hash, so a copy of the database holds nothing a client could present. |
|
postgres
Package postgres is the PostgreSQL implementation of the per-consumer state interfaces defined across the codebase (see state/doc.go), for deployments that run several replicas over one shared database.
|
Package postgres is the PostgreSQL implementation of the per-consumer state interfaces defined across the codebase (see state/doc.go), for deployments that run several replicas over one shared database. |
|
sqlite
Package sqlite is the concrete SQLite-backed implementation that satisfies the per-consumer state interfaces defined across the codebase via Go's structural typing (see state/doc.go).
|
Package sqlite is the concrete SQLite-backed implementation that satisfies the per-consumer state interfaces defined across the codebase via Go's structural typing (see state/doc.go). |
|
storetest
Package storetest is the conformance suite for state backends.
|
Package storetest is the conformance suite for state backends. |
|
Package telemetry implements observe over OpenTelemetry: the SDK (Provider), an observe.Meter and observe.Tracer backed by it, the Prometheus exposition of every instrument on the admin listener's /metrics, and, when OTEL_TRACES_EXPORTER=otlp, OTLP span export.
|
Package telemetry implements observe over OpenTelemetry: the SDK (Provider), an observe.Meter and observe.Tracer backed by it, the Prometheus exposition of every instrument on the admin listener's /metrics, and, when OTEL_TRACES_EXPORTER=otlp, OTLP span export. |
|
test
|
|
|
e2e/mockgoogle
command
Command mockgoogle is a minimal but real upstream OIDC IdP used only by the end-to-end test (test/e2e).
|
Command mockgoogle is a minimal but real upstream OIDC IdP used only by the end-to-end test (test/e2e). |
Click to show internal directories.
Click to hide internal directories.