...
Package zstdchunked
import "github.com/containerd/stargz-snapshotter/estargz/zstdchunked"
- Overview
- Index
- Constants
- type Compressor
- func (zc *Compressor) WriteTOCAndFooter(w io.Writer, off int64, toc *estargz.JTOC, diffHash hash.Hash) (digest.Digest, error)
- func (zc *Compressor) Writer(w io.Writer) (estargz.WriteFlushCloser, error)
- type Decompressor
- func (zz *Decompressor) DecompressTOC(r io.Reader) (tocJSON io.ReadCloser, err error)
- func (zz *Decompressor) FooterSize() int64
- func (zz *Decompressor) ParseFooter(p []byte) (blobPayloadSize, tocOffset, tocSize int64, err error)
- func (zz *Decompressor) ParseTOC(r io.Reader) (toc *estargz.JTOC, tocDgst digest.Digest, err error)
- func (zz *Decompressor) Reader(r io.Reader) (io.ReadCloser, error)
Package files
zstdchunked.go
Constants
const (
ManifestChecksumAnnotation = "io.containers.zstd-chunked.manifest-checksum"
ManifestPositionAnnotation = "io.containers.zstd-chunked.manifest-position"
= 40
)
type Compressor struct {
CompressionLevel zstd.EncoderLevel
Metadata map[string]string
}
func (zc *Compressor) WriteTOCAndFooter(w io.Writer, off int64, toc *estargz.JTOC, diffHash hash.Hash) (digest.Digest, error)
func (*Compressor) Writer
¶
func (zc *Compressor) Writer(w io.Writer) (estargz.WriteFlushCloser, error)
type Decompressor struct{}
func (zz *Decompressor) DecompressTOC(r io.Reader) (tocJSON io.ReadCloser, err error)
func (zz *Decompressor) FooterSize() int64
func (zz *Decompressor) ParseFooter(p []byte) (blobPayloadSize, tocOffset, tocSize int64, err error)
func (*Decompressor) ParseTOC
¶
func (zz *Decompressor) ParseTOC(r io.Reader) (toc *estargz.JTOC, tocDgst digest.Digest, err error)
func (*Decompressor) Reader
¶
func (zz *Decompressor) Reader(r io.Reader) (io.ReadCloser, error)