internal/

directory
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT

Directories

Path Synopsis
Package check holds the required checks of a ref, the results that a runner posts, and the delivery of check requests.
Package check holds the required checks of a ref, the results that a runner posts, and the delivery of check requests.
Package config reads the configuration of ward from the environment.
Package config reads the configuration of ward from the environment.
Package devicelogin signs a person in with the OAuth device authorization grant (RFC 8628) against any OIDC issuer, and keeps the token in a file that only the user reads.
Package devicelogin signs a person in with the OAuth device authorization grant (RFC 8628) against any OIDC issuer, and keeps the token in a file that only the user reads.
Package dispatch is the seam between the check manager and the runners: how an open check request reaches a runner.
Package dispatch is the seam between the check manager and the runners: how an open check request reaches a runner.
dispatchtest
Package dispatchtest is the conformance suite of dispatch.Dispatcher.
Package dispatchtest is the conformance suite of dispatch.Dispatcher.
memdispatch
Package memdispatch is the in-memory implementation of dispatch.Dispatcher for tests.
Package memdispatch is the in-memory implementation of dispatch.Dispatcher for tests.
pull
Package pull dispatches a check request through a queue that runners poll.
Package pull dispatches a check request through a queue that runners poll.
push
Package push dispatches a check request by posting it to the hook URL of the runner of its repository.
Package push dispatches a check request by posting it to the hook URL of the runner of its repository.
Package identity maps the credential of a request to the claims of a caller token.
Package identity maps the credential of a request to the claims of a caller token.
bearer
Package bearer authenticates a request by a signed caller token in the header Authorization.
Package bearer authenticates a request by a signed caller token in the header Authorization.
identitytest
Package identitytest holds the conformance suite of identity.Authenticator and a signer of JWTs.
Package identitytest holds the conformance suite of identity.Authenticator and a signer of JWTs.
oidc
Package oidc authenticates a request by a signed OIDC JWT from any issuer, and maps a claim of the JWT to the scope land on a repository with rules.
Package oidc authenticates a request by a signed OIDC JWT from any issuer, and maps a claim of the JWT to the scope land on a repository with rules.
usertoken
Package usertoken authenticates a request by a per-user token that an operator issued.
Package usertoken authenticates a request by a per-user token that an operator issued.
Package land lands a motte branch on a ref through a per-ref queue.
Package land lands a motte branch on a ref through a per-ref queue.
Command leaklint fails when a tracked file or a commit message holds a term of the denylist.
Command leaklint fails when a tracked file or a commit message holds a term of the denylist.
lint
cmd/lint command
Command lint runs the repository analyzers.
Command lint runs the repository analyzers.
wallclock
Package wallclock reports time.Sleep and time.After in test files outside a testing/synctest.Test bubble.
Package wallclock reports time.Sleep and time.After in test files outside a testing/synctest.Test bubble.
Package mirror keeps a one-way mirror from motte to external git remotes.
Package mirror keeps a one-way mirror from motte to external git remotes.
sqlite
Package sqlite is the SQLite state store of ward: the mirror, the check results and the lands.
Package sqlite is the SQLite state store of ward: the mirror, the check results and the lands.
Package procgroup runs a command as the leader of its own process group and kills the whole group on cancel.
Package procgroup runs a command as the leader of its own process group and kills the whole group on cancel.
Package runner is `ward runner`: a check runner that serves the hook of the runner protocol, fetches the exact tree, runs the argv of the check in a sandbox and posts the result to ward.
Package runner is `ward runner`: a check runner that serves the hook of the runner protocol, fetches the exact tree, runs the argv of the check in a sandbox and posts the result to ward.
fakerunner
Package fakerunner is the minimal implementation of runnerproto.Runner for tests.
Package fakerunner is the minimal implementation of runnerproto.Runner for tests.
install
Package install prepares a Linux host to run `ward runner` in pull mode.
Package install prepares a Linux host to run `ward runner` in pull mode.
sandbox
Package sandbox is the seam between a check runner and the place where check code runs.
Package sandbox is the seam between a check runner and the place where check code runs.
sandbox/container
Package container runs a check in an OCI container through the command line of an engine such as docker or podman.
Package container runs a check in an OCI container through the command line of an engine such as docker or podman.
sandbox/fake
Package fake is the minimal implementation of sandbox.Sandbox for tests.
Package fake is the minimal implementation of sandbox.Sandbox for tests.
sandbox/gvisor
Package gvisor runs a check in an OCI container under the gVisor runtime runsc, through a container engine.
Package gvisor runs a check in an OCI container under the gVisor runtime runsc, through a container engine.
sandbox/sandboxtest
Package sandboxtest is the conformance suite of sandbox.Sandbox.
Package sandboxtest is the conformance suite of sandbox.Sandbox.
warm
Package warm serves the tree of a check from a local bare clone of the repository.
Package warm serves the tree of a check from a local bare clone of the repository.
warm/motteevents
Package motteevents is a warm.Watcher that polls the ref events of motte.
Package motteevents is a warm.Watcher that polls the ref events of motte.
warm/periodic
Package periodic is the fallback warm.Watcher: it reports every known repository as changed at a fixed interval.
Package periodic is the fallback warm.Watcher: it reports every known repository as changed at a fixed interval.
warm/warmtest
Package warmtest is the conformance suite of warm.Watcher.
Package warmtest is the conformance suite of warm.Watcher.
Package seams enforces the provider seam rules of AGENTS.md.
Package seams enforces the provider seam rules of AGENTS.md.
Package server is the HTTP surface of ward.
Package server is the HTTP surface of ward.
Package telemetry sets up the OTLP export of traces and metrics.
Package telemetry sets up the OTLP export of traces and metrics.
Command testtime reads the output of go test -json on standard input, prints the readable test log, and fails when a test or a package is slower than the budget of testdata/test-time-budget.txt.
Command testtime reads the output of go test -json on standard input, prints the readable test log, and fails when a test or a package is slower than the budget of testdata/test-time-budget.txt.
Package token signs and verifies the caller tokens of ward.
Package token signs and verifies the caller tokens of ward.
Package usertokentest holds the conformance suite of usertoken.Store and an in-memory Store that runs it.
Package usertokentest holds the conformance suite of usertoken.Store and an in-memory Store that runs it.

Jump to

Keyboard shortcuts

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