internal/

directory
v0.5.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package api adapts the service layer to connect-go handlers.
Package api adapts the service layer to connect-go handlers.
Package blob stores content-addressed objects: file contents and trees.
Package blob stores content-addressed objects: file contents and trees.
s3test
Package s3test is an in-process fake of the S3 API for tests: one bucket, objects in memory, SigV4 signatures checked on every request, multipart uploads, ranged reads, ListObjects (v1) and injected failures.
Package s3test is an in-process fake of the S3 API for tests: one bucket, objects in memory, SigV4 signatures checked on every request, multipart uploads, ranged reads, ListObjects (v1) and injected failures.
Package cli implements the vx command line.
Package cli implements the vx command line.
Package client is the Go client for a vx server: typed service clients plus batched object transfer between a local blob store and the server.
Package client is the Go client for a vx server: typed service clients plus batched object transfer between a local blob store and the server.
Package engine holds the operations that combine snapshots: three-way merges of trees and the rebase step used when landing changes.
Package engine holds the operations that combine snapshots: three-way merges of trees and the rebase step used when landing changes.
Package gitbridge connects vx to git hosts.
Package gitbridge connects vx to git hosts.
hosttest
Package hosttest fakes the pull request APIs of GitLab (REST v4), Gitea and Forgejo (/api/v1) and Bitbucket Cloud (2.0) for one repository, and optionally serves git over HTTP for it (git http-backend), so tests never call a real host.
Package hosttest fakes the pull request APIs of GitLab (REST v4), Gitea and Forgejo (/api/v1) and Bitbucket Cloud (2.0) for one repository, and optionally serves git over HTTP for it (git http-backend), so tests never call a real host.
Package github is vx's client for the GitHub REST API as a GitHub App: the manifest flow, installations, installation tokens, OAuth sign-in, repository permissions and organization membership.
Package github is vx's client for the GitHub REST API as a GitHub App: the manifest flow, installations, installation tokens, OAuth sign-in, repository permissions and organization membership.
githubtest
Package githubtest is a fake GitHub for tests: an httptest server with the parts of the REST API and the browser flows vx uses, plus helpers to create users, organizations and repositories, set permissions, install the App and fire signed webhook deliveries.
Package githubtest is a fake GitHub for tests: an httptest server with the parts of the REST API and the browser flows vx uses, plus helpers to create users, organizations and repositories, set permissions, install the App and fire signed webhook deliveries.
Package hash defines the content hash used for every object in vx.
Package hash defines the content hash used for every object in vx.
Package mcp serves vx to agents over the Model Context Protocol, so they can query efforts, changes and the board directly instead of parsing CLI output.
Package mcp serves vx to agents over the Model Context Protocol, so they can query efforts, changes and the board directly instead of parsing CLI output.
Package merge implements line diffs, unified diff output and three-way merges of text files.
Package merge implements line diffs, unified diff output and three-way merges of text files.
Package metrics is a small Prometheus registry: counters, gauges and histograms with labels, written in the Prometheus text format (version 0.0.4).
Package metrics is a small Prometheus registry: counters, gauges and histograms with labels, written in the Prometheus text format (version 0.0.4).
Package object defines the vx object model: trees, manifests and changesets.
Package object defines the vx object model: trees, manifests and changesets.
Package oidc is the client side of OpenID Connect sign-in: provider discovery, the authorization code flow with PKCE, and ID token verification (signature through the provider's JWKS, issuer, audience, expiry and nonce).
Package oidc is the client side of OpenID Connect sign-in: provider discovery, the authorization code flow with PKCE, and ID token verification (signature through the provider's JWKS, issuer, audience, expiry and nonce).
oidctest
Package oidctest is a fake OpenID Connect provider for tests: discovery, JWKS, an authorize endpoint that signs the configured user in at once, and a token endpoint that checks the client secret and PKCE and issues RS256 ID tokens.
Package oidctest is a fake OpenID Connect provider for tests: discovery, JWKS, an authorize endpoint that signs the configured user in at once, and a token endpoint that checks the client secret and PKCE and issues RS256 ID tokens.
Package provider holds the types shared by the service layer and the git bridge for shipping changes to a git host.
Package provider holds the types shared by the service layer and the git bridge for shipping changes to a git host.
Package ratelimit keeps token buckets per class (API, sign-in, sign-up, CLI login, webhooks) and key (a token or a client address), in memory.
Package ratelimit keeps token buckets per class (API, sign-in, sign-up, CLI login, webhooks) and key (a token or a client address), in memory.
Package rules reads a repository's vx.toml: what text merges cannot see.
Package rules reads a repository's vx.toml: what text merges cannot see.
Package secret seals secrets at rest with the server key (VX_SECRET_KEY): AES-256-GCM with a random nonce.
Package secret seals secrets at rest with the server key (VX_SECRET_KEY): AES-256-GCM with a random nonce.
Package server wires the vx server together: database, blob store, git bridge, API handlers and the HTTP listener.
Package server wires the vx server together: database, blob store, git bridge, API handlers and the HTTP listener.
Package service is vx's application logic: creating repos and efforts, opening workspaces and landing changes.
Package service is vx's application logic: creating repos and efforts, opening workspaces and landing changes.
Package store is the Postgres metadata store: principals, repos, branches, efforts, workspaces, changesets and the operation log.
Package store is the Postgres metadata store: principals, repos, branches, efforts, workspaces, changesets and the operation log.
storetest
Package storetest gives tests an isolated, migrated Postgres database.
Package storetest gives tests an isolated, migrated Postgres database.
Package version reports the build version, set at release time with -ldflags "-X github.com/TerracodeBA/vx/internal/version.Version=v0.1.0 ...".
Package version reports the build version, set at release time with -ldflags "-X github.com/TerracodeBA/vx/internal/version.Version=v0.1.0 ...".
web
Package web is the vx web UI: efforts, who is working on what, the timeline of lands with their evidence, diffs of each change, and the shipping view.
Package web is the vx web UI: efforts, who is working on what, the timeline of lands with their evidence, diffs of each change, and the shipping view.
highlight
Package highlight colours source code for the web UI's diffs.
Package highlight colours source code for the web UI's diffs.
Package webpush sends Web Push messages: the payload encrypted for one browser subscription (RFC 8291, aes128gcm of RFC 8188) and the request signed with the server's VAPID key (RFC 8292).
Package webpush sends Web Push messages: the payload encrypted for one browser subscription (RFC 8291, aes128gcm of RFC 8188) and the request signed with the server's VAPID key (RFC 8292).
Package workcopy manages a vx working copy on disk: the files, the .vx directory with its config, a local object cache and a stat index that avoids rehashing unchanged files.
Package workcopy manages a vx working copy on disk: the files, the .vx directory with its config, a local object cache and a stat index that avoids rehashing unchanged files.

Jump to

Keyboard shortcuts

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