tarslice

package
Version: v0.0.0-...-a873046 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL