Versions in this module Expand all Collapse all v0 v0.1.1 Mar 11, 2026 Changes in this version + type Progress interface + CompactTar func(fileCount int, uncompressedBytes int64, compressedBytes int64, ...) + ConvertingLayer func(mediaType string, compressedBytes int64) + Done func(totalEntries int, largeFiles int, smallFiles int, hardlinks int) + LargeFile func(name string, size int64, digest digest.Digest) v0.1.0 Mar 10, 2026 Changes in this version + const MediaTypeLayerTOC + const OriginalDigestAnnotation + const SmallFileThreshold + const UncompressedSizeAnnotation + func ConvertLayer(ctx context.Context, data []byte, mediaType string) (*TOC, []Blob, error) + type Blob struct + Data []byte + Digest digest.Digest + type TOC struct + Entries []TOCEntry + Version int + func ConvertLayerToChunked(ctx context.Context, compressedData []byte, mediaType string, ...) (*TOC, error) + func ParseTOC(data []byte) (*TOC, error) + func (t *TOC) ChunkDigests() []digest.Digest + func (t *TOC) UncompressedSize() int64 + type TOCChunk struct + Digest digest.Digest + Size int64 + type TOCEntry struct + Chunks []TOCChunk + CompressedDigest digest.Digest + Compression string + Description string + DevMajor int64 + DevMinor int64 + Digest digest.Digest + GID int + Gname string + LinkName string + ModTime time.Time + Mode uint32 + Name string + Size int64 + Type string + UID int + Uname string + UncompressedSize int64 + Xattrs map[string][]byte