archive

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package archive provides a reader and writer interface for the different archive types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	GetFiles() (files []string, err error)
	HasFile(fileName string) (exists bool, err error)
	GetFile(fileName string) (reader io.Reader, err error)
}

Reader is the reader interface for all valid archive types (zip, gzip, tar)

type Writer

type Writer interface {
	AddFile(name string, fileContent []byte) (writtenSize int64, err error)
	AddFileByPath(name string, filePath string) (writtenSize int64, err error)
	Close() error
}

Writer is the writer interface for all valid archive types (zip, gzip, tar)

Directories

Path Synopsis
Package archivetest contains the shared testing utility of all archive implementations
Package archivetest contains the shared testing utility of all archive implementations
Package gzip contains the implementation of the gzip archive
Package gzip contains the implementation of the gzip archive
Package tar contains the implementation of the tar archive
Package tar contains the implementation of the tar archive
Package zip contains the implementation of the zip archive
Package zip contains the implementation of the zip archive

Jump to

Keyboard shortcuts

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