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.PreviewValues.
|
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.PreviewValues. |
|
internal
|
|
|
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. |
|
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 over the GitHub API, authenticated as the GitHub App installation.
|
Package github implements forge.Forge over the GitHub API, authenticated as the GitHub App installation. |
|
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. |
|
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.