archive

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyArchive = errors.New("no files were added to the archive")

Functions

func WriteTarGzipEncoded

func WriteTarGzipEncoded(tar Tar, writer io.Writer) (err error)

func WriteTarS2Encoded

func WriteTarS2Encoded(tar Tar, writer io.Writer) (err error)

Types

type Tar

type Tar struct {
	Ignorer *ignore.Ignorer
	// contains filtered or unexported fields
}

func (*Tar) Add

func (t *Tar) Add(srcPath, destPath string) error

func (*Tar) Remove

func (t *Tar) Remove(path string) bool

func (*Tar) Write

func (t *Tar) Write(writer io.Writer) error

Jump to

Keyboard shortcuts

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