Documentation ¶
Index ¶
- func ArchiverConcurrency(n int) archiverOption
- func ExtractorConcurrency(n int) extractorOption
- func NewArchiver(archive *os.File, options ...archiverOption) (*archiver, error)
- func NewExtractor(outputDir string, options ...extractorOption) (*extractor, error)
- type ArchiverCLI
- type ExtendedTimestampExtraField
- type ExtractorCLI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiverConcurrency ¶
func ArchiverConcurrency(n int) archiverOption
ArchiverConcurrency sets the number of goroutines used during archiving An error is returned if n is less than 1.
func ExtractorConcurrency ¶
func ExtractorConcurrency(n int) extractorOption
ExtractorConcurrency sets the number of goroutines used during extraction An error is returned if n is less than 1.
func NewArchiver ¶
NewArchiver returns a new pzip archiver. The archiver can be configured by passing in a number of options. Available options include ArchiverConcurrency(n int). It returns an error if the archiver can't be created Close() should be called on the returned archiver when done
func NewExtractor ¶
NewExtractor returns a new pzip extractor. The extractor can be configured by passing in a number of options. Available options include ExtractorConcurrency(n int). It returns an error if the extractor can't be created Close() should be called on the returned extractor when done
Types ¶
type ArchiverCLI ¶
type ExtendedTimestampExtraField ¶
type ExtendedTimestampExtraField struct {
// contains filtered or unexported fields
}
ExtendedTimeStampExtraField is the extended timestamp field, as defined in the zip specification (See 4.5.3 https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT).
func NewExtendedTimestampExtraField ¶
func NewExtendedTimestampExtraField(modified time.Time) *ExtendedTimestampExtraField
func (*ExtendedTimestampExtraField) Encode ¶
func (e *ExtendedTimestampExtraField) Encode() []byte
Encode returns the modified time of the associated ExtendedTimestampExtraField as a slice of bytes.