Directories
¶
| Path | Synopsis |
|---|---|
|
Package client calls a gitd, on its Unix socket or on the network: for programs written in Go, and for gitd's own command line and MCP server.
|
Package client calls a gitd, on its Unix socket or on the network: for programs written in Go, and for gitd's own command line and MCP server. |
|
cmd
|
|
|
gitd
command
Command gitd keeps one copy of each git repository and makes workspaces that borrow from it.
|
Command gitd keeps one copy of each git repository and makes workspaces that borrow from it. |
|
gitd-csi
command
Command gitd-csi is gitd's Kubernetes CSI node plugin (internal/csi): a pod's ephemeral volume of the driver gitd.dev becomes a workspace of the gitd on its node, with no credential in the pod.
|
Command gitd-csi is gitd's Kubernetes CSI node plugin (internal/csi): a pod's ephemeral volume of the driver gitd.dev becomes a workspace of the gitd on its node, with no credential in the pod. |
|
gitd-mount
command
Command gitd-mount mounts and unmounts gitd's overlay workspaces, so that gitd itself needs no privilege.
|
Command gitd-mount mounts and unmounts gitd's overlay workspaces, so that gitd itself needs no privilege. |
|
gen
|
|
|
internal
|
|
|
apikeys
Package apikeys checks the keys callers bring: a tenant's, or the one gitd's network address asks for without tenants.
|
Package apikeys checks the keys callers bring: a tenant's, or the one gitd's network address asks for without tenants. |
|
audit
Package audit keeps the audit log: every publish, done or refused, one per line of an append-only file, in the JSON form of the contract's AuditEntry.
|
Package audit keeps the audit log: every publish, done or refused, one per line of an append-only file, in the JSON form of the contract's AuditEntry. |
|
cli
Package cli is gitd's command line.
|
Package cli is gitd's command line. |
|
config
Package config reads gitd's configuration, a TOML file whose every key has a default.
|
Package config reads gitd's configuration, a TOML file whose every key has a default. |
|
conformance
Package conformance checks that every way of making a workspace from a template behaves, under what an agent does with git, exactly as a written checkout does — and never changes the template.
|
Package conformance checks that every way of making a workspace from a template behaves, under what an agent does with git, exactly as a written checkout does — and never changes the template. |
|
connections
Package connections keeps the credentials a platform gives gitd through the API: one file per connection under the state directory, readable by gitd's user only, its secret sealed when gitd has a secrets key.
|
Package connections keeps the credentials a platform gives gitd through the API: one file per connection under the state directory, readable by gitd's user only, its secret sealed when gitd has a secrets key. |
|
connectpage
Package connectpage writes the pages `gitd connect github-app` serves on this machine while a person creates their organisation's GitHub App: what will be created and may do, that it is connected and where to install it, or why it was not kept.
|
Package connectpage writes the pages `gitd connect github-app` serves on this machine while a person creates their organisation's GitHub App: what will be created and may do, that it is connected and where to install it, or why it was not kept. |
|
credentials
Package credentials turns the credentials of one request into how git reads a repository.
|
Package credentials turns the credentials of one request into how git reads a repository. |
|
csi
Package csi is gitd's Kubernetes CSI node plugin: a pod asks for a workspace like any volume — an ephemeral inline volume of the driver gitd.dev — and gets a copy-on-write checkout, made by the gitd on its node, with no credential in the pod.
|
Package csi is gitd's Kubernetes CSI node plugin: a pod asks for a workspace like any volume — an ephemeral inline volume of the driver gitd.dev — and gets a copy-on-write checkout, made by the gitd on its node, with no credential in the pod. |
|
daemon
Package daemon is gitd serving: it reads the configuration, puts every part together and answers on the socket until it is told to stop.
|
Package daemon is gitd serving: it reads the configuration, puts every part together and answers on the socket until it is told to stop. |
|
endpoint
Package endpoint is gitd's git endpoint: sandboxes that cannot mount gitd's directories clone and push over smart HTTP, with tokens of gitd's own that open one repository each, never the git host's credential.
|
Package endpoint is gitd's git endpoint: sandboxes that cannot mount gitd's directories clone and push over smart HTTP, with tokens of gitd's own that open one repository each, never the git host's credential. |
|
events
Package events carries what happens to workspaces to whoever watches: a workspace made, changed, published, refused or removed.
|
Package events carries what happens to workspaces to whoever watches: a workspace made, changed, published, refused or removed. |
|
files
Package files writes the files gitd keeps for itself under its state directory.
|
Package files writes the files gitd keeps for itself under its state directory. |
|
git
Package git runs the official git binary, and is the only thing in gitd that does.
|
Package git runs the official git binary, and is the only thing in gitd that does. |
|
githubapp
Package githubapp makes the tokens of a GitHub App: a short JWT signed with the App's private key asks GitHub for an installation token limited to one repository and to what one operation needs, kept in memory until shortly before it expires.
|
Package githubapp makes the tokens of a GitHub App: a short JWT signed with the App's private key asks GitHub for an installation token limited to one repository and to what one operation needs, kept in memory until shortly before it expires. |
|
housekeeping
Package housekeeping keeps the pools healthy and the disk clean, by itself.
|
Package housekeeping keeps the pools healthy and the disk clean, by itself. |
|
lock
Package lock serializes the writes on one repository and bounds how many run at once.
|
Package lock serializes the writes on one repository and bounds how many run at once. |
|
mcpserver
Package mcpserver offers gitd to AI agents as Model Context Protocol tools, over stdio.
|
Package mcpserver offers gitd to AI agents as Model Context Protocol tools, over stdio. |
|
metrics
Package metrics is what gitd tells Prometheus.
|
Package metrics is what gitd tells Prometheus. |
|
mounthelper
Package mounthelper is gitd-mount: the one process that may mount, so that gitd needs no privilege at all.
|
Package mounthelper is gitd-mount: the one process that may mount, so that gitd needs no privilege at all. |
|
pool
Package pool keeps one bare copy of each repository on this server, and is the only thing that reaches the network for it.
|
Package pool keeps one bare copy of each repository on this server, and is the only thing that reaches the network for it. |
|
progress
Package progress reads what git writes to stderr with `--progress` while it works.
|
Package progress reads what git writes to stderr with `--progress` while it works. |
|
publishing
Package publishing keeps the rules publishing follows for the repositories under each prefix, and the presets — named sets of rules — those settings take: gitd's own, those of the configuration file, shown and never changed through the API, and those a platform sets through it, kept under the state directory and applied at once.
|
Package publishing keeps the rules publishing follows for the repositories under each prefix, and the presets — named sets of rules — those settings take: gitd's own, those of the configuration file, shown and never changed through the API, and those a platform sets through it, kept under the state directory and applied at once. |
|
pullrequests
Package pullrequests opens the pull request of a publish, on the host's API, with the same credential that pushed it, and writes its body: who asked for the work and what gitd checked, so a reviewer reads in a minute what they would otherwise dig for.
|
Package pullrequests opens the pull request of a publish, on the host's API, with the same credential that pushed it, and writes its body: who asked for the work and what gitd checked, so a reviewer reads in a minute what they would otherwise dig for. |
|
repo
Package repo says which repository an address names.
|
Package repo says which repository an address names. |
|
secrets
Package secrets keeps the secrets gitd stores on disk — the tokens and private keys of connections made through the API — sealed with a key kept apart, when one is given.
|
Package secrets keeps the secrets gitd stores on disk — the tokens and private keys of connections made through the API — sealed with a key kept apart, when one is given. |
|
server
Package server answers the contract in proto/gitd/v1 over ConnectRPC, on a Unix socket.
|
Package server answers the contract in proto/gitd/v1 over ConnectRPC, on a Unix socket. |
|
strategy
Package strategy makes a workspace's directory from a template without writing its files: an overlay layer on top of the template, or a reflink copy of it.
|
Package strategy makes a workspace's directory from a template without writing its files: an overlay layer on top of the template, or a reflink copy of it. |
|
template
Package template keeps the templates copy-on-write workspaces are made from: one read-only checkout of a repository at a commit, built once and shared by every workspace of that commit, and retired once none uses it.
|
Package template keeps the templates copy-on-write workspaces are made from: one read-only checkout of a repository at a commit, built once and shared by every workspace of that commit, and retired once none uses it. |
|
testhost
Package testhost serves a repository over HTTPS with git's own smart HTTP server, taking pushes, for tests that publish: a git host on this machine, with a certificate a pool can be told to trust.
|
Package testhost serves a repository over HTTPS with git's own smart HTTP server, taking pushes, for tests that publish: a git host on this machine, with a certificate a pool can be told to trust. |
|
userservice
Package userservice runs gitd for the person signed in, under their system's own manager of user services: systemd's user instance on Linux, launchd on macOS.
|
Package userservice runs gitd for the person signed in, under their system's own manager of user services: systemd's user instance on Linux, launchd on macOS. |
|
winservice
Package winservice runs gitd as a Windows service, as systemd runs it on Linux: started with the machine, restarted when it fails, answering whoever is in the local group gitd.
|
Package winservice runs gitd as a Windows service, as systemd runs it on Linux: started with the machine, restarted when it fails, answering whoever is in the local group gitd. |
|
workspace
Package workspace checks repositories out where their users need them.
|
Package workspace checks repositories out where their users need them. |
Click to show internal directories.
Click to hide internal directories.