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 ¶
- 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 ServiceStoreBaseURLs() []string
- func StoreBaseURLs() []string
- func StoreHost() string
- func ToolsManifestURLs() []string
Constants ¶
This section is empty.
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 ¶
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 ServiceStoreBaseURLs ¶ added in v1.28.0
func ServiceStoreBaseURLs() []string
ServiceStoreBaseURLs returns the service-preset-store base, nested under a services/ subdir.
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.