internal/

directory
v0.30.2 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 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.
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.
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.
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.
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.
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.
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.
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 and the cleanup CronJob.
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 and the cleanup CronJob.
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.
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.
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.
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.
Package github provides GitHub App authentication, webhooks, and API client.
Package github provides GitHub App authentication, webhooks, and API client.
manifest
Package manifest creates a GitHub App through the manifest flow and writes its credentials to a PEM file and a .env file.
Package manifest creates a GitHub App through the manifest flow and writes its credentials to a PEM file and a .env file.
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.
Package metrics holds badil's Prometheus collectors in their own registry.
Package metrics holds badil's Prometheus collectors in their own registry.
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.
Package preview provides slug generation and values file building.
Package preview provides slug generation and values file building.
Package server provides HTTP routes and webhook handlers.
Package server provides HTTP routes and webhook handlers.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

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