Documentation

Overview

    Package tarslice implements bigslice operations for reading tar archives.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Reader

    func Reader(nshard int, archive func() (io.ReadCloser, error)) bigslice.Slice

      Reader returns a slice of Entry records representing the tar archive of the io.ReadCloser returned by the archive func. Slices are sharded nshard ways, striped across entries. Note that the archive is read fully for each shard produced.

      Types

      type Entry

      type Entry struct {
      	// Header is the full tar header.
      	tar.Header
      	// Body is the file contents.
      	Body []byte
      }

        Entry describes a single tar file entry, including its full contents.

        Source Files