index

package
v0.0.0-...-a6bde1d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Msb            uint64
	Lsb            uint64
	Position       int
	Size           int
	Generation     int
	FullGeneration int
	Compacted      bool
}

Entry is a reference to a segment. An Index is composed of one or more entries.

type Index

type Index struct {
	Entries []Entry
}

Index is a catalog of every segment stored in a TAR file.

func (*Index) ReadFrom

func (index *Index) ReadFrom(r io.Reader) (int64, error)

ReadFrom reads the index from 'r' and returns the number of bytes read and an error.

Jump to

Keyboard shortcuts

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