Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
Root string
// contains filtered or unexported fields
}
Manager owns the per-image unpack lifecycle. One per loom-server. Concurrent Ensure for the same ref is deduped via a per-image WG.
func New ¶
New returns a Manager backed by root (auto-created on first Ensure). root == "" defaults to ~/.weft-loom/tools/.
func (*Manager) Ensure ¶
Ensure makes sure the image is pulled + unpacked. logicalName is the stable identifier the guest's tool wrappers reference (e.g. "texlive") ; ref is the OCI ref to pull. Idempotent : a second Ensure for the same ref is a no-op, a different ref under the same logicalName atomically flips the .current symlink.