archive

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name   string
	Reader io.Reader
}

File is an archived file.

type FileHandler

type FileHandler func(*File) error

FileHandler is a functional that can process a File. It returns an error if there is one.

type Tgz

type Tgz struct {
}

Tgz handles gzip'd tar archives.

func (*Tgz) Unarchive

func (t *Tgz) Unarchive(r io.Reader, handler FileHandler) error

UnTgz gunzips and un-tars the contents of a reader. Then handler will be called for every file in the archive.

type Unarchiver

type Unarchiver interface {
	Unarchive(io.Reader, FileHandler) error
}

Unarchiver unarchives a reader and processes files using the FileHandler.

Jump to

Keyboard shortcuts

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