Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileMetadata ¶
FileMetadata contains the metadata for a file in the index. Start is the offset of the file in the tar archive. HeaderBlocks is the number of blocks in the header of the file (each block is 512 bytes). Size is the size of the file in bytes.
type Index ¶
type Index struct {
Bytes []byte
// contains filtered or unexported fields
}
func OpenTarIndex ¶
OpenTarIndex opens a tar index file and returns an Index object. name is the path to the index file. Returns nil and an error if the file cannot be opened.
func (*Index) GetFileMetadata ¶
func (i *Index) GetFileMetadata(index uint64) (FileMetadata, error)
GetFileMetadata returns the metadata for a file in the index. index is the index of the file in the index. Returns the metadata for the file.
Click to show internal directories.
Click to hide internal directories.