Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
badil
command
|
|
|
fakegithub
command
Command fakegithub serves a mock of the GitHub API badil calls, with a control API that changes its state and sends signed webhooks to badil.
|
Command fakegithub serves a mock of the GitHub API badil calls, with a control API that changes its state and sends signed webhooks to badil. |
|
schemagen
command
Command schemagen writes the JSON Schema of the preview-apps chart's values, generated from internal/chartvalues.Values, and the JSON Schema of the preview values contract, generated from internal/preview.Values.
|
Command schemagen writes the JSON Schema of the preview-apps chart's values, generated from internal/chartvalues.Values, and the JSON Schema of the preview values contract, generated from internal/preview.Values. |
|
internal
|
|
|
api
Package api holds the JSON bodies of badil's HTTP API, shared by the server and its clients.
|
Package api holds the JSON bodies of badil's HTTP API, shared by the server and its clients. |
|
apiclient
Package apiclient is the HTTP client of badil's API that the badil CLI uses.
|
Package apiclient is the HTTP client of badil's API that the badil CLI uses. |
|
app
Package app holds badil's application services: the background job queue that runs reconciles, the latest reconcile outcome of each PR, the wake signal of the waits, the lifecycle APIs built over the gitops store and the forge, the handling of the pull_request and push events, the config syncs, the intake of the renderer status events, the manual deploys, the read model of the previews and the evaluation of the waits.
|
Package app holds badil's application services: the background job queue that runs reconciles, the latest reconcile outcome of each PR, the wake signal of the waits, the lifecycle APIs built over the gitops store and the forge, the handling of the pull_request and push events, the config syncs, the intake of the renderer status events, the manual deploys, the read model of the previews and the evaluation of the waits. |
|
archtest
Package archtest holds the test of the dependency rule of docs/ARCHITECTURE.md on every package's transitive imports.
|
Package archtest holds the test of the dependency rule of docs/ARCHITECTURE.md on every package's transitive imports. |
|
catalog
Package catalog parses and validates badil.yaml, the services and dependencies of the gitops repo and their preview settings.
|
Package catalog parses and validates badil.yaml, the services and dependencies of the gitops repo and their preview settings. |
|
chartvalues
Package chartvalues holds the Go types of the preview-apps chart's values, from which cmd/schemagen generates charts/preview-apps/values.schema.json.
|
Package chartvalues holds the Go types of the preview-apps chart's values, from which cmd/schemagen generates charts/preview-apps/values.schema.json. |
|
expiry
Package expiry keeps the PRs of the previews the sweep expired for the TTL (lifecycle.ExpiryStore) in memory.
|
Package expiry keeps the PRs of the previews the sweep expired for the TTL (lifecycle.ExpiryStore) in memory. |
|
expiry/kube
Package kube keeps the PRs of the previews the sweep expired for the TTL (lifecycle.ExpiryStore) in the ConfigMap badil-expired of badil's namespace, written by the server.
|
Package kube keeps the PRs of the previews the sweep expired for the TTL (lifecycle.ExpiryStore) in the ConfigMap badil-expired of badil's namespace, written by the server. |
|
fakegithub
Package fakegithub is a mock of the GitHub REST API badil calls, served under /api/v3/ from in-memory state, with a control API under /_mock/ that changes the state and sends the matching signed webhook to badil.
|
Package fakegithub is a mock of the GitHub REST API badil calls, served under /api/v3/ from in-memory state, with a control API under /_mock/ that changes the state and sends the matching signed webhook to badil. |
|
forge
Package forge defines what badil needs from the forge hosting the service repos: pull request reads, the preview comment and webhook deliveries, through neutral types.
|
Package forge defines what badil needs from the forge hosting the service repos: pull request reads, the preview comment and webhook deliveries, through neutral types. |
|
forge/github
Package github implements forge.Forge and forge.WebhookParser over the GitHub API, authenticated as the GitHub App installation.
|
Package github implements forge.Forge and forge.WebhookParser over the GitHub API, authenticated as the GitHub App installation. |
|
forge/github/githubtest
Package githubtest gives tests the GitHub forge's default repo and pull request URL rules, on https://github.com and without a client.
|
Package githubtest gives tests the GitHub forge's default repo and pull request URL rules, on https://github.com and without a client. |
|
github
Package github provides GitHub App authentication, webhooks, and API client.
|
Package github provides GitHub App authentication, webhooks, and API client. |
|
lifecycle
Package lifecycle drives previews: it deploys and tears down a pull request's part of its preview, and sweeps every preview of the gitops repo.
|
Package lifecycle drives previews: it deploys and tears down a pull request's part of its preview, and sweeps every preview of the gitops repo. |
|
metrics
Package metrics holds badil's Prometheus collectors in their own registry.
|
Package metrics holds badil's Prometheus collectors in their own registry. |
|
namespace
Package namespace tells whether the namespace of a new preview is free for badil to deploy into: absent, or already a preview namespace of that slug.
|
Package namespace tells whether the namespace of a new preview is free for badil to deploy into: absent, or already a preview namespace of that slug. |
|
preview
Package preview provides slug generation and values file building.
|
Package preview provides slug generation and values file building. |
|
server
Package server provides HTTP routes and webhook handlers.
|
Package server provides HTTP routes and webhook handlers. |
|
status
Package status keeps the latest status the renderer reported for each service of each preview.
|
Package status keeps the latest status the renderer reported for each service of each preview. |
|
status/kube
Package kube keeps the status of the previews (package status) in one ConfigMap per preview in badil's namespace.
|
Package kube keeps the status of the previews (package status) in one ConfigMap per preview in badil's namespace. |
|
store
Package store reads and writes the gitops repository: badil.yaml and the preview values files.
|
Package store reads and writes the gitops repository: badil.yaml and the preview values files. |
|
store/storetest
Package storetest provides bare gitops repositories for tests of the store and of its callers: remotes a store clones, fetches from and pushes to, in-process, with no git binary.
|
Package storetest provides bare gitops repositories for tests of the store and of its callers: remotes a store clones, fetches from and pushes to, in-process, with no git binary. |
Click to show internal directories.
Click to hide internal directories.