archiver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	// OutputZipToFile zips filepaths and directories in projectPath and output it to designated path destination.
	OutputZipToFile(projectPath, outputPath string, filepaths []string) error
	// OutputZipToIOReader zips filepaths and directories in projectPath and output it to io.Reader to be consumed later.
	OutputZipToIOReader(projectPath string, filepaths []string) (io.Reader, error)
}

Archiver defines methods for archiving file / directory.

func New

func New() Archiver

New instantiates new archiver.

Directories

Path Synopsis
Package mockarchiver is a generated GoMock package.
Package mockarchiver is a generated GoMock package.

Jump to

Keyboard shortcuts

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