Documentation
¶
Overview ¶
Package origin centralises every URL lerd fetches its own assets from: release binaries, the framework and service stores, the changelog, and the GHCR base images. Everything is served from the lerd-env org (the geodro->lerd-env move is complete), and each endpoint is overridable via its environment variable for tests and mirrors.
Index ¶
- Constants
- func BaseImageRefs(phpShort, hash string) []string
- func ChangelogURLs(tag string) []string
- func ExtraToolHosts() []string
- func NativePHPManifestURLs() []string
- func ReleaseAPIBaseURLs() []string
- func ReleaseBaseURLs() []string
- func ReleaseDownloadBases() []string
- func RepoURL() string
- func ServiceStoreBaseURLs() []string
- func StoreBaseURLs() []string
- func StoreHost() string
- func ToolsManifestURLs() []string
Constants ¶
const StoreSchema = 2
StoreSchema is the definition schema this binary reads. The store publishes a rendered tree per schema, and the unprefixed path is schema 1: every binary up to 1.35.0 computes that URL for itself and cannot be taught another, so it has to keep meaning what those binaries expect. A newer schema lives under its own prefix, which only a binary that knows the schema asks for.
Variables ¶
This section is empty.
Functions ¶
func BaseImageRefs ¶
BaseImageRefs lists GHCR refs for a prebuilt PHP-FPM base image, where phpShort is the dotless version (e.g. "85") and hash pins the image to the embedded Containerfile template.
func ChangelogURLs ¶
ChangelogURLs lists raw changelog URLs for the given tag. An empty tag falls back to main. The changelog lives at docs/changelog.md; the root CHANGELOG.md is a symlink that raw.githubusercontent does not follow.
func ExtraToolHosts ¶ added in v1.31.0
func ExtraToolHosts() []string
ExtraToolHosts lists additional hosts a published tool manifest may point at, for a test rig or a mirror. Empty by default: the built-in allowlist is what a normal install trusts.
func NativePHPManifestURLs ¶ added in v1.35.0
func NativePHPManifestURLs() []string
NativePHPManifestURLs lists raw URLs of the native PHP pins. They live in their own repository because the builds are published there, on the cadence PHP releases patches rather than lerd's.
func ReleaseAPIBaseURLs ¶
func ReleaseAPIBaseURLs() []string
ReleaseAPIBaseURLs lists GitHub API bases.
func ReleaseDownloadBases ¶
func ReleaseDownloadBases() []string
ReleaseDownloadBases lists release-asset download bases.
func RepoURL ¶ added in v1.36.0
func RepoURL() string
RepoURL is the project's home on GitHub, as lerd about shows it.
func ServiceStoreBaseURLs ¶ added in v1.28.0
func ServiceStoreBaseURLs() []string
ServiceStoreBaseURLs returns the service-preset-store bases, newest schema first, down to the legacy unprefixed path. A binary running against a store that has not published its schema yet resolves through the ones below.
func StoreBaseURLs ¶
func StoreBaseURLs() []string
StoreBaseURLs returns the framework-store base. The definitions live under a frameworks/ subdir (index.json + <name>.yaml), not at the repo root.
func StoreHost ¶ added in v1.34.0
func StoreHost() string
StoreHost returns the hostname of the framework store, or "" when the base carries none. Probes that need a name the install actually fetches take it from here so a self-hosted store is tested rather than one lerd never calls.
func ToolsManifestURLs ¶ added in v1.31.0
func ToolsManifestURLs() []string
ToolsManifestURLs lists raw URLs of the pinned host-tool manifest (internal/tools/tools.yaml); the embedded copy is the fallback when none answer.
Types ¶
This section is empty.