You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Virtual Filesystem Layer for Archive Contents #59
Resolved in commit 64866e0. pkg/archive/ has been committed to main with ArchiveMetadata, ArchiveIndex, and ArchiveEntry types, plus IsArchive() format detection for tar.zst, tar.gz, and tar.bz2. These provide the objectfs-side metadata types for CargoShip archive integration.
Fully implemented in 171a860. The internal/archive package provides the complete VFS layer specified in the issue:
path_translator.go — Translate(fuseRelPath) scans path segments left-to-right and splits at the first known archive extension, producing a ParsedPath with ArchiveKey, InnerPath, and ArchiveFormat. Supports tar.zst, tar.gz, .tgz, tar.bz2.
vfs.go — VFS backed by types.Backend:
Stat(ctx, archiveKey, innerPath) → *types.ObjectInfo for archive root (virtual dir), explicit dir entries, implicit virtual dirs, and files; returns ErrNotFound when entry is absent
ReadDir(ctx, archiveKey, innerPath) → direct children with deduplication; synthesises virtual directory entries for archives created without explicit dir records (common with plain tar cf)
ReadFile(ctx, archiveKey, innerPath, offset, size) → decompressed file content; per-entry content cache for repeated reads; Invalidate(archiveKey) clears both index and content caches
28 race-clean unit tests covering all three formats, virtual directory detection, offset/size slicing, beyond-EOF reads, caching behaviour, and Invalidate.
Activity
feat: add pkg/archive metadata types and Python SDK
docs: update CHANGELOG with session changes (issues #54, #57, #58, #59,
scttfrdmn commentedon Feb 22, 2026
Resolved in commit 64866e0.
pkg/archive/has been committed tomainwithArchiveMetadata,ArchiveIndex, andArchiveEntrytypes, plusIsArchive()format detection for tar.zst, tar.gz, and tar.bz2. These provide the objectfs-side metadata types for CargoShip archive integration.feat: add internal/archive VFS layer for transparent archive navigati…
scttfrdmn commentedon Feb 22, 2026
Fully implemented in 171a860. The
internal/archivepackage provides the complete VFS layer specified in the issue:path_translator.go—Translate(fuseRelPath)scans path segments left-to-right and splits at the first known archive extension, producing aParsedPathwithArchiveKey,InnerPath, andArchiveFormat. Supports tar.zst, tar.gz, .tgz, tar.bz2.vfs.go—VFSbacked bytypes.Backend:Stat(ctx, archiveKey, innerPath)→*types.ObjectInfofor archive root (virtual dir), explicit dir entries, implicit virtual dirs, and files; returnsErrNotFoundwhen entry is absentReadDir(ctx, archiveKey, innerPath)→ direct children with deduplication; synthesises virtual directory entries for archives created without explicit dir records (common with plaintar cf)ReadFile(ctx, archiveKey, innerPath, offset, size)→ decompressed file content; per-entry content cache for repeated reads;Invalidate(archiveKey)clears both index and content cachesDecompressor support: zstd (klauspost/compress/zstd), gzip (stdlib), bzip2 (stdlib)
28 race-clean unit tests covering all three formats, virtual directory detection, offset/size slicing, beyond-EOF reads, caching behaviour, and Invalidate.