archivetest

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive []ArchiveFile

func (Archive) TarGZStream

func (files Archive) TarGZStream() (io.Reader, error)

func (Archive) TarStream

func (files Archive) TarStream() (io.Reader, error)

func (Archive) WriteTar

func (files Archive) WriteTar(writer io.Writer) error

func (Archive) WriteZip

func (files Archive) WriteZip(writer io.Writer) error

func (Archive) ZipFile

func (files Archive) ZipFile(tmpDir string) (string, error)

type ArchiveFile

type ArchiveFile struct {
	Name string
	Body string
	Mode int64
	Dir  bool
	Link string

	ModTime    time.Time
	AccessTime time.Time
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL