tgz

package
v0.0.0-...-cd3ace8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	// contains filtered or unexported methods
}

Entry is archive entry.

type FilePath

type FilePath string

FilePath is file path of archive entry

type FilePathInfo

type FilePathInfo struct {
	// contains filtered or unexported fields
}

FilePathInfo is file path of archive entry.

func NewFilePathInfo

func NewFilePathInfo(p string, opt *FilePathOption) *FilePathInfo

NewFilePathInfo is create FilePathInfo.

type FilePathOption

type FilePathOption struct {
	DontRecurse bool
}

FilePathOption is file path entry option.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer is tar.gz archiver.

func NewWriter

func NewWriter(w io.Writer) *Writer

NewWriter is create new archiver instance.

func (*Writer) Add

func (e *Writer) Add(entries ...Entry) *Writer

Add is add Entry to archive.

func (*Writer) Write

func (e *Writer) Write() (err error)

Write is archive and write to tar.gz.

Jump to

Keyboard shortcuts

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