zip

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package zip provides a mockable wrapper for archive/zip.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) FileInfoHeader

func (*Impl) FileInfoHeader(fi fs.FileInfo) (*zip.FileHeader, error)

func (*Impl) NewReader

func (*Impl) NewReader(r io.ReaderAt, size int64) (*zip.Reader, error)

func (*Impl) NewWriter

func (*Impl) NewWriter(w io.Writer) *zip.Writer

func (*Impl) OpenReader

func (*Impl) OpenReader(name string) (*zip.ReadCloser, error)

func (*Impl) RegisterCompressor

func (*Impl) RegisterCompressor(method uint16, comp zip.Compressor)

func (*Impl) RegisterDecompressor

func (*Impl) RegisterDecompressor(method uint16, dcomp zip.Decompressor)

type Interface

type Interface interface {
	FileInfoHeader(fi fs.FileInfo) (*zip.FileHeader, error)
	NewReader(r io.ReaderAt, size int64) (*zip.Reader, error)
	NewWriter(w io.Writer) *zip.Writer
	OpenReader(name string) (*zip.ReadCloser, error)
	RegisterCompressor(method uint16, comp zip.Compressor)
	RegisterDecompressor(method uint16, dcomp zip.Decompressor)
}

Jump to

Keyboard shortcuts

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