archive

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeZip

func MakeZip(dest io.Writer, exclude []string, source ...string) error

MakeZip recursively writes all the files found under the provided sources to the dest io.Writer in ZIP format. Any directories listed in source are archived recursively. Empty directories and directories and files specified via the exclude parameter are ignored.

Types

type TarWriter

type TarWriter struct {
	Repository *git.Repository
	Commit     *git.Commit
	// contains filtered or unexported fields
}

func NewTarWriter

func NewTarWriter(repo *git.Repository, commit *git.Commit) *TarWriter

func (*TarWriter) Write

func (a *TarWriter) Write(target string) error

type Writer

type Writer interface {
	Write(target string) error
	// contains filtered or unexported methods
}

type ZipWriter

type ZipWriter struct {
	Repository *git.Repository
	Commit     *git.Commit
	// contains filtered or unexported fields
}

func NewZipWriter

func NewZipWriter(repo *git.Repository, commit *git.Commit) *ZipWriter

func (*ZipWriter) Write

func (a *ZipWriter) Write(target string) error

Jump to

Keyboard shortcuts

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