Documentation
¶
Overview ¶
Package sysimage loads the platform images a release carries (the managed PostgreSQL images) into the built-in registry the first time something needs them. Releases are self-contained: no public registry is involved, and an air-gapped host can drop the archives in place.
Index ¶
Constants ¶
const RegistryPrefix = "@registry/"
RegistryPrefix marks an image in the built-in registry ("@registry/…").
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Preparing ¶
type Preparing struct{ Phase string }
Preparing means the image is being loaded; Phase says how far it got.
type Registry ¶
type Registry interface {
HasImage(ctx context.Context, repo, ref string) (bool, error)
PushLayout(ctx context.Context, repo, tag, dir string) error
}
Registry is what the seeder needs from the built-in registry.
type Seeder ¶
type Seeder struct {
Registry Registry
// Source and Version locate this controller's release, which carries
// the archives.
Source upgrade.Source
Version string
// Dir holds archives placed by hand (air-gapped hosts): <Dir>/<archive>
// is used before anything is downloaded. It may be read-only.
Dir string
// WorkDir is where archives are downloaded and unpacked: under the data
// directory, the one place the installed service may write
// (ProtectSystem=strict). An archive placed here is used too.
WorkDir string
// Arch is the archives' CPU architecture (default: the controller's).
Arch string
Log *slog.Logger
// contains filtered or unexported fields
}
Seeder loads release images into the registry on demand.