registry

package
v1.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Template registry

One folder per template under registry/templates/<id>/. The folder name is the template id.

registry/templates/<id>/
  template.yaml          metadata (see fields below)
  compose.yaml           the compose body, kept byte for byte
  manifest.compose.yaml  only for templates with a manifest whose raw compose differs

Fields in template.yaml

  • id, name, slogan: required.
  • description: optional setup notes (ports, firewall, required env, licence), plain text.
  • category, documentation_url.
  • recommended_memory_bytes: advisory RAM, 0 means none.
  • requires_gpu: true when the compose reserves an NVIDIA GPU.
  • platforms: os/arch pairs verified in the image manifests, empty means not checked.
  • icon: optional thesvg slug, empty for now.
  • manifest: the install manifest (env prompts, domains, healthcheck) when the template has one.

Add a template

Drop a new folder with template.yaml and compose.yaml, then open a PR. CI will validate it.

Today

The Go catalog is still what the binary serves. This folder is generated from it:

go run ./scripts/export-registry          # write
go run ./scripts/export-registry -check   # fail if stale

LoadRegistryDir in internal/catalog reads this folder back, and a test proves it equals the catalog field for field.

Documentation

Overview

Package registry embeds the template registry so the binary serves it. registry/ stays the single source of truth; nothing is copied.

Index

Constants

This section is empty.

Variables

View Source
var Templates embed.FS

Templates holds every registry/templates/<id>/ folder under the "templates" root.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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