Versions in this module Expand all Collapse all v0 v0.24.3 Jun 16, 2023 Changes in this version + const ARCHIVE + const DIRECTORY + var ErrManifestNotRegular = errors.New("manifest.json not a regular file") + var ErrMissingManifest = errors.New("missing manifest.json") + var ErrUnableToReadManifest = errors.New("unable to read manifest.json") + var ErrUnrecognizedBundleFormatVersion = errors.New("unrecognized bundle format version") + func BuildBundle(reader base.Reader, opt ...v1.ManifestOption) (base.Bundle, error) + func Checksum(raw []byte) string + func NewDirReader(path string) base.Reader + func NewFSReader(path string, fsys fs.FS) base.Reader + func NewTarGzReader(path string, r io.Reader) (base.Reader, error) + func NewTarGzWriter(w io.Writer) base.Writer + func ReadBundle(reader base.Reader) (base.Bundle, error) + type Bundle = base.Bundle + type DirReader struct + func (r *DirReader) Info() base.SourceInfo + func (r *DirReader) Manifest() (*Manifest, error) + func (r *DirReader) WalkFiles(handler base.WalkFilesFunc) error + type FSReader struct + func (r *FSReader) Info() base.SourceInfo + func (r *FSReader) Manifest() (*Manifest, error) + func (r *FSReader) WalkFiles(handler base.WalkFilesFunc) error + type FileProducer struct + Filter func(path string) bool + Reader base.Reader + func (p *FileProducer) Info() base.SourceInfo + func (p *FileProducer) Produce(consumer base.FileConsumer) error + type Manifest = base.Manifest + type Reader = base.Reader + type TarGzReader struct + func (r *TarGzReader) Info() base.SourceInfo + func (r *TarGzReader) Manifest() (*base.Manifest, error) + func (r *TarGzReader) WalkFiles(handler base.WalkFilesFunc) error + type TarGzWriter struct + func (w *TarGzWriter) Write(b Bundle) error + type Writer = base.Writer