Documentation
¶
Overview ¶
Package commit snapshots a stopped workspace's rootfs back into an OCI image and pushes it to a registry — the reverse of the OCI->rootfs realize path. commit extracts the ext4 rootfs (via debugfs, unprivileged), assembles a single-layer OCI image (pkg/ociimage), and writes it to a local OCI layout; Push copies that image to a registry with ORAS using the same standard pull credentials as the rootfs builder.
Limitation: unprivileged debugfs extraction does not preserve original file ownership, so committed layers record the current user's uid/gid. Content, modes, and symlinks are preserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LayoutPath ¶
LayoutPath is where committed images are stored as an OCI image layout.
Types ¶
type Options ¶
type Options struct {
StateDir string
DebugFSPath string
Workspace string
Backend string
Reference string // target image reference, e.g. registry/repo:tag
Architecture string // OCI architecture; defaults to the guest arch
CreatedAt time.Time
}
Options configures a commit.