Documentation
¶
Overview ¶
Package nativeartifacts pins the native programs installed by engine members.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareCommands ¶
PrepareCommands downloads and verifies bytes before installing them. destDir is the immutable installation root (normally /opt/karakoram/name-version). Tar archives preserve their full layout; debs use apt to resolve dependencies.
func ResolveURL ¶
ResolveURL applies the operator mirror, official upstream and release fallback in that order. An explicit artifact release overrides only the release fallback. Resolution happens in the control plane, before deployment.
Types ¶
type Artifact ¶
type Artifact struct {
Name string `json:"name"`
// Kind selects restricted installation for PostgreSQL extension archives.
Kind string `json:"kind,omitempty"`
PGMajor int `json:"pgMajor,omitempty"`
Version string `json:"version"`
File string `json:"file"`
SHA256 string `json:"sha256"`
Size int64 `json:"size"`
UpstreamURL string `json:"upstreamURL"`
License string `json:"license"`
Source Source `json:"source"`
Build string `json:"build"`
// RuntimeDeps names the Ubuntu packages installed in the clean smoke runner.
RuntimeDeps []string `json:"runtimeDeps,omitempty"`
// Extensions lists the smoke-qualified extensions in a filesystem-root
// bundle. The embedded catalog's slice must be treated as read-only.
Extensions []string `json:"extensions,omitempty"`
// ExtensionFlags qualifies preload and feature restrictions for Extensions.
// Like Extensions, the embedded map and its values are read-only.
ExtensionFlags map[string]ExtensionFlags `json:"extensionFlags,omitempty"`
// ExecutableMembers lists regular archive files to chmod 0755 after
// extraction as the runtime owner. Paths must be canonical and relative.
// Like Extensions, the embedded slice is read-only.
ExecutableMembers []string `json:"executableMembers,omitempty"`
}
Artifact describes verified Linux amd64 bytes, not a floating release channel.
func ExtensionArtifact ¶ added in v0.4.0
ExtensionArtifact returns a locked per-major extension artifact. Recipes alone never establish availability; the lock must declare the matching ABI.
type ExtensionFlags ¶
type ExtensionFlags struct {
Preload bool `json:"preload"`
}
ExtensionFlags records the runtime mode actually qualified for an extension.
type MissingMirrorError ¶
type MissingMirrorError struct{ Name string }
MissingMirrorError is an admission failure for a source build that cannot locate a Karakoram-built artifact. Official upstream artifacts need no mirror.
func (*MissingMirrorError) Error ¶
func (e *MissingMirrorError) Error() string