Documentation ¶
Index ¶
Constants ¶
View Source
const ( EOCDPrefetchBufferSize = 65536 // 64kb is more than enough Zip64HeaderId = 0x0001 )
Variables ¶
View Source
var ( EOCDSignature = []byte{0x50, 0x4b, 0x05, 0x06} EOCD64Signature = []byte{0x50, 0x4b, 0x06, 0x06} )
View Source
var ( ErrInvalidZip = errors.New("invalid zip file") ErrFileNotFound = errors.New("file not found") )
Functions ¶
func ReaderForRecord ¶
func ReaderForRecord(f *CDR, fetcher OffsetFetcher) (io.Reader, error)
Types ¶
type CDLocation ¶
type CDR ¶
type CentralDirectoryParser ¶
type CentralDirectoryParser struct {
// contains filtered or unexported fields
}
func NewCentralDirectoryParser ¶
func NewCentralDirectoryParser(reader OffsetFetcher) *CentralDirectoryParser
func (*CentralDirectoryParser) GetCentralDirectory ¶
func (p *CentralDirectoryParser) GetCentralDirectory() ([]*CDR, error)
type StorageAdapter ¶
type StorageAdapter struct {
// contains filtered or unexported fields
}
func NewStorageAdapter ¶
func NewStorageAdapter(ctx context.Context, f remote.Fetcher) *StorageAdapter
Click to show internal directories.
Click to hide internal directories.