Documentation ¶
Index ¶
- Constants
- type Compressor
- 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)
Constants ¶
View Source
const ( // ManifestChecksumAnnotation is an annotation that contains the compressed TOC Digset ManifestChecksumAnnotation = "io.containers.zstd-chunked.manifest-checksum" // ManifestPositionAnnotation is an annotation that contains the offset to the TOC. ManifestPositionAnnotation = "io.containers.zstd-chunked.manifest-position" FooterSize = 40 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct { CompressionLevel zstd.EncoderLevel Metadata map[string]string // contains filtered or unexported fields }
func (*Compressor) WriteTOCAndFooter ¶
func (*Compressor) Writer ¶
func (zc *Compressor) Writer(w io.Writer) (estargz.WriteFlushCloser, error)
type Decompressor ¶
type Decompressor struct{}
func (*Decompressor) DecompressTOC ¶ added in v0.10.0
func (zz *Decompressor) DecompressTOC(r io.Reader) (tocJSON io.ReadCloser, err error)
func (*Decompressor) FooterSize ¶
func (zz *Decompressor) FooterSize() int64
func (*Decompressor) ParseFooter ¶
func (zz *Decompressor) ParseFooter(p []byte) (blobPayloadSize, tocOffset, tocSize int64, err error)
func (*Decompressor) Reader ¶
func (zz *Decompressor) Reader(r io.Reader) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.