internal/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: Apache-2.0

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
Package apiclient provides primitives to interact with the openapi HTTP API.
Package apiclient provides primitives to interact with the openapi HTTP API.
Package apitoken holds Angelia's API tokens (story #72, ADR 0030): the token format (T1, in internal/apitoken/format and re-exported here), its hash at rest (T2) and the api.Authenticator that resolves a bearer token to its principal (T10) and records last use (T6).
Package apitoken holds Angelia's API tokens (story #72, ADR 0030): the token format (T1, in internal/apitoken/format and re-exported here), its hash at rest (T2) and the api.Authenticator that resolves a bearer token to its principal (T10) and records last use (T6).
format
Package format is the API token format of ADR 0030 T1, on its own so that internal/config can recognise tokens without importing the authenticator (internal/apitoken imports internal/api, which imports internal/config).
Package format is the API token format of ADR 0030 T1, on its own so that internal/config can recognise tokens without importing the authenticator (internal/apitoken imports internal/api, which imports internal/config).
Package apply holds the plan logic of `angelia apply` (story #73): reading watch files (docs/watch-file.md, unchanged), the label scope of --prune and the diff of the report.
Package apply holds the plan logic of `angelia apply` (story #73): reading watch files (docs/watch-file.md, unchanged), the label scope of --prune and the diff of the report.
Package buildinfo exposes the version, commit and build date of the binary.
Package buildinfo exposes the version, commit and build date of the binary.
Package config loads and validates the instance configuration: the settings of one Angelia process (listen address, database, roles, logging).
Package config loads and validates the instance configuration: the settings of one Angelia process (listen address, database, roles, logging).
Package detect is the scheduler's Checker: it fetches a target through the source registered for its kind and commits what it found (known set, held versions, events, deliveries) through event.Commit, the transactional outbox.
Package detect is the scheduler's Checker: it fetches a target through the source registered for its kind and commits what it found (known set, held versions, events, deliveries) through event.Commit, the transactional outbox.
Package diff compares a target's known version set with the versions a source just fetched and reports what changed (architecture.md §3.4): new versions, including backports such as 1.9.4 released after 2.0.0, yank and un-yank transitions, and versions that stopped being listed upstream.
Package diff compares a target's known version set with the versions a source just fetched and reports what changed (architecture.md §3.4): new versions, including backports such as 1.9.4 released after 2.0.0, yank and un-yank transitions, and versions that stopped being listed upstream.
Package dispatch is the "dispatcher" role: it leases due deliveries, sends them through their sink, retries failures with full-jitter exponential backoff, and sets them dead after a permanent error or the last attempt (ADR 0017).
Package dispatch is the "dispatcher" role: it leases due deliveries, sends them through their sink, retries failures with full-jitter exponential backoff, and sets them dead after a permanent error or the last attempt (ADR 0017).
Package event turns what a watch policy emits into immutable release events and their deliveries (architecture.md §2 decision 4, §4).
Package event turns what a watch policy emits into immutable release events and their deliveries (architecture.md §2 decision 4, §4).
Package mcp is the MCP server of Angelia (ADR 0029): the tools of the contract api/mcp/tools.v1.json (spec docs/mcp.md), each one a client of the REST API through internal/apiclient.
Package mcp is the MCP server of Angelia (ADR 0029): the tools of the contract api/mcp/tools.v1.json (spec docs/mcp.md), each one a client of the REST API through internal/apiclient.
Package metrics exposes Angelia's Prometheus metrics (ADR 0019).
Package metrics exposes Angelia's Prometheus metrics (ADR 0019).
Package netguard is the one HTTP client used by every source and sink, so that politeness and safety are enforced in one place.
Package netguard is the one HTTP client used by every source and sink, so that politeness and safety are enforced in one place.
Package plugin hosts third-party plugins.
Package plugin hosts third-party plugins.
wasm
Package wasm hosts source plugins compiled to WebAssembly, on Extism and wazero (pure Go, no CGO).
Package wasm hosts source plugins compiled to WebAssembly, on Extism and wazero (pure Go, no CGO).
wasm/wasmtest
Package wasmtest holds test helpers for the WASM plugin host: a fake crates.io API with synthetic data, used by the host's tests and by benchmark 4 (bench/wasm).
Package wasmtest holds test helpers for the WASM plugin host: a fake crates.io API with synthetic data, used by the host's tests and by benchmark 4 (bench/wasm).
Package policy applies filters, prerelease mode, constraints, cooldown and baseline.
Package policy applies filters, prerelease mode, constraints, cooldown and baseline.
Package render turns a release event into the body a sink delivers, with the subscription's Go text/template or, when it has none, the event's CloudEvents JSON (architecture.md §3.5, ADR 0016, docs/templates.md).
Package render turns a release event into the body a sink delivers, with the subscription's Go text/template or, when it has none, the event's CloudEvents JSON (architecture.md §3.5, ADR 0016, docs/templates.md).
Package scheduler is the "scheduler" role (architecture.md §3.2, ADR 0009).
Package scheduler is the "scheduler" role (architecture.md §3.2, ADR 0009).
Package secrets stores secret values encrypted at rest (story #75, ADR 0024).
Package secrets stores secret values encrypted at rest (story #75, ADR 0024).
Package sink contains the Sink implementations, one subpackage per kind.
Package sink contains the Sink implementations, one subpackage per kind.
githubdispatch
Package githubdispatch is the "github-dispatch" sink (spec GithubDispatchSinkConfig, docs/github-dispatch.md): it triggers a repository_dispatch event or a workflow_dispatch run in one GitHub repository, through the netguard client.
Package githubdispatch is the "github-dispatch" sink (spec GithubDispatchSinkConfig, docs/github-dispatch.md): it triggers a repository_dispatch event or a workflow_dispatch run in one GitHub repository, through the netguard client.
shoutrrr
Package shoutrrr is the "shoutrrr" sink (ADR 0026): it sends a plain-text message to one chat or push service (slack, discord, telegram, ntfy, gotify, matrix) through the github.com/nicholas-fedor/shoutrrr service packages, never its router.
Package shoutrrr is the "shoutrrr" sink (ADR 0026): it sends a plain-text message to one chat or push service (slack, discord, telegram, ntfy, gotify, matrix) through the github.com/nicholas-fedor/shoutrrr service packages, never its router.
webhook
Package webhook is the "webhook" sink (ADR 0023): it POSTs a delivery's message to a URL, signed per Standard Webhooks v1, through the netguard client.
Package webhook is the "webhook" sink (ADR 0023): it POSTs a delivery's message to a URL, signed per Standard Webhooks v1, through the netguard client.
Package source defines the Source contract (architecture.md section 3.3) and a Registry of Source implementations by kind.
Package source defines the Source contract (architecture.md section 3.3) and a Registry of Source implementations by kind.
crates
Package crates is the Source for crates.io.
Package crates is the Source for crates.io.
githubrelease
Package githubrelease is the "github-release" Source: it lists the releases of a GitHub (or GitHub Enterprise) repository.
Package githubrelease is the "github-release" Source: it lists the releases of a GitHub (or GitHub Enterprise) repository.
githubtag
Package githubtag is the "github-tag" Source: it lists the git tags of a GitHub (or GitHub Enterprise) repository that does not publish releases.
Package githubtag is the "github-tag" Source: it lists the git tags of a GitHub (or GitHub Enterprise) repository that does not publish releases.
gitlabrelease
Package gitlabrelease is the "gitlab-release" Source: it lists the releases of a project on gitlab.com or on a self-managed GitLab instance.
Package gitlabrelease is the "gitlab-release" Source: it lists the releases of a project on gitlab.com or on a self-managed GitLab instance.
internal/apiclient
Package apiclient holds the token and redirect plumbing shared by the sources that call an authenticated HTTP API (github-release, github-tag, gitlab-release): the redacting token type, token providers, the test for where credentials may travel, the redirect guard that never carries credentials to another host or to plain http, and the fetch helper that adds the 404 and 401 hints.
Package apiclient holds the token and redirect plumbing shared by the sources that call an authenticated HTTP API (github-release, github-tag, gitlab-release): the redacting token type, token providers, the test for where credentials may travel, the redirect guard that never carries credentials to another host or to plain http, and the fetch helper that adds the 404 and 401 hints.
internal/ghapi
Package ghapi holds the GitHub-specific plumbing shared by the GitHub-API based sources (github-release, github-tag): the default base URL, the "owner/name" coordinate parser and the authenticated GET helper.
Package ghapi holds the GitHub-specific plumbing shared by the GitHub-API based sources (github-release, github-tag): the default base URL, the "owner/name" coordinate parser and the authenticated GET helper.
npm
Package npm is the Source for the npm registry.
Package npm is the Source for the npm registry.
pypi
Package pypi is the Source for PyPI releases (architecture.md section 3.3).
Package pypi is the Source for PyPI releases (architecture.md section 3.3).
registryauth
Package registryauth adds the credential of a private registry or mirror (PRD F16) to every request of a source's HTTP client, so the sources themselves stay credential-free.
Package registryauth adds the credential of a private registry or mirror (PRD F16) to every request of a source's HTTP client, so the sources themselves stay credential-free.
sourcetest
Package sourcetest is the contract test suite every source.Source must pass.
Package sourcetest is the contract test suite every source.Source must pass.
Package store defines the persistence contract for watches, versions, events and deliveries (docs/architecture.md §5).
Package store defines the persistence contract for watches, versions, events and deliveries (docs/architecture.md §5).
migrations
Package migrations holds the versioned goose migrations of the store schema, embedded into the binary, one directory per engine.
Package migrations holds the versioned goose migrations of the store schema, embedded into the binary, one directory per engine.
open
Package open is the engine-neutral way to reach the store: it chooses the SQLite or the Postgres engine from database.dsn and gives the commands one set of functions, the read-only helpers included (story #85, ADR 0028).
Package open is the engine-neutral way to reach the store: it chooses the SQLite or the Postgres engine from database.dsn and gives the commands one set of functions, the read-only helpers included (story #85, ADR 0028).
pgtest
Package pgtest gives each test its own Postgres schema on the server named by ANGELIA_TEST_POSTGRES_DSN (story #85, ADR 0028 §6).
Package pgtest gives each test its own Postgres schema on the server named by ANGELIA_TEST_POSTGRES_DSN (story #85, ADR 0028 §6).
postgres
Package postgres is the Postgres store engine (story #85, ADR 0028), through pgx/v5 behind database/sql.
Package postgres is the Postgres store engine (story #85, ADR 0028), through pgx/v5 behind database/sql.
sqlite
Package sqlite implements store.Store on SQLite through the pure-Go modernc.org/sqlite driver (no CGO).
Package sqlite implements store.Store on SQLite through the pure-Go modernc.org/sqlite driver (no CGO).
storetest
Package storetest is the engine-independent test suite of the store contracts (store.Store, store.APIStore, store.SecretStore and store.TokenStore).
Package storetest is the engine-independent test suite of the store contracts (store.Store, store.APIStore, store.SecretStore and store.TokenStore).
Package subscription matches release events to subscription filters.
Package subscription matches release events to subscription filters.
Package supervisor runs the Angelia roles (api, scheduler, worker, dispatcher) inside one process, serves /healthz and /readyz, and shuts everything down gracefully on cancellation.
Package supervisor runs the Angelia roles (api, scheduler, worker, dispatcher) inside one process, serves /healthz and /readyz, and shuts everything down gracefully on cancellation.
Package telemetry is Angelia's OpenTelemetry tracing (story #118, ADR 0020).
Package telemetry is Angelia's OpenTelemetry tracing (story #118, ADR 0020).
telemetrytest
Package telemetrytest records spans in memory for tests.
Package telemetrytest records spans in memory for tests.
Package ulid generates ULIDs (https://github.com/ulid/spec): 48 bits of Unix milliseconds then 80 random bits, written as 26 characters of Crockford base32, upper case.
Package ulid generates ULIDs (https://github.com/ulid/spec): 48 bits of Unix milliseconds then 80 random bits, written as 26 characters of Crockford base32, upper case.
Package version defines how Angelia parses, orders and classifies upstream versions.
Package version defines how Angelia parses, orders and classifies upstream versions.
calver
Package calver implements calendar versioning for tags such as "2026.10.1", "2026.10.15", "2026.3", "24.04" and "24.04.1-rc1".
Package calver implements calendar versioning for tags such as "2026.10.1", "2026.10.15", "2026.3", "24.04" and "24.04.1-rc1".
lexical
Package lexical is the fallback version scheme: any non-blank string is a version, ordered by natural string order (version.Natural), so "1.10" sorts after "1.9".
Package lexical is the fallback version scheme: any non-blank string is a version, ordered by natural string order (version.Natural), so "1.10" sorts after "1.9".
pep440
Package pep440 implements Python version identifiers as specified by PEP 440 / the PyPA "Version specifiers" specification, including epochs, pre-, post- and dev-releases, local versions and the normalization rules (case, separators, spelling variants such as "alpha", "c", "rev", implicit numbers and implicit post-releases "1.0-1").
Package pep440 implements Python version identifiers as specified by PEP 440 / the PyPA "Version specifiers" specification, including epochs, pre-, post- and dev-releases, local versions and the normalization rules (case, separators, spelling variants such as "alpha", "c", "rev", implicit numbers and implicit post-releases "1.0-1").
schemes
Package schemes chooses the version scheme of a watch (by source kind, overridable per watch) and wraps it so that unparseable versions fall back to the lexical scheme instead of failing.
Package schemes chooses the version scheme of a watch (by source kind, overridable per watch) and wraps it so that unparseable versions fall back to the lexical scheme instead of failing.
semver
Package semver implements Semantic Versioning 2.0.0 (https://semver.org) with the npm-style loose prefix: surrounding white space, a leading "=" and a leading "v" or "V" are accepted and dropped ("v1.2.3" == "1.2.3").
Package semver implements Semantic Versioning 2.0.0 (https://semver.org) with the npm-style loose prefix: surrounding white space, a leading "=" and a leading "v" or "V" are accepted and dropped ("v1.2.3" == "1.2.3").
Package watchfile loads the declarative watch file (docs/watch-file.md): the sinks, watches and subscriptions an instance manages until the REST API exists.
Package watchfile loads the declarative watch file (docs/watch-file.md): the sinks, watches and subscriptions an instance manages until the REST API exists.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL