Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Extra header IDs. // See http://mdfs.net/Docs/Comp/Archiving/Zip/ExtraField Zip64ExtraID = 0x0001 // Zip64 extended information NtFsExtraID = 0x000a // NTFS UnixExtraID = 0x000d // UNIX ExtTimeExtraID = 0x5455 // Extended timestamp InfoZipUnixExtraID = 0x5855 // Info-ZIP Unix extension )
View Source
const ( CompressMethodStored = 0 CompressMethodDeflated = 8 )
Variables ¶
Functions ¶
func MSDosTimeToTime ¶
Types ¶
type ArchiveEntry ¶
type ArchiveEntry interface { IsDir() bool Open() (io.ReadCloser, error) GetName() string // contains filtered or unexported methods }
type ArchiveEntryState ¶
type ArchiveEntryState struct {
// contains filtered or unexported fields
}
type ArchiveStreamReader ¶
type ArchiveStreamReader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(reader io.Reader) *ArchiveStreamReader
func (*ArchiveStreamReader) GetNextEntry ¶
func (reader *ArchiveStreamReader) GetNextEntry() (ArchiveEntry, error)
type GzipEntry ¶
type GzipEntry struct { gzip.Header // Entry Header ArchiveEntryState }
type GzipEntryCloser ¶
func (GzipEntryCloser) Close ¶
func (gzipEntryCloser GzipEntryCloser) Close() error
type TarEntry ¶
type TarEntry struct { tar.Header // Entry Header ArchiveEntryState }
type ZipEntry ¶
type ZipEntry struct { zip.FileHeader // Entry header ArchiveEntryState // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.