archive

package
v0.0.0-...-1acd2bc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveBuilder

type ArchiveBuilder struct {
	Downloader *fetcher.Fetcher
	Archive    *zip.Writer
}

func NewArchiveBuilder

func NewArchiveBuilder(dl *fetcher.Fetcher, w *zip.Writer) *ArchiveBuilder

func (*ArchiveBuilder) Add

func (b *ArchiveBuilder) Add(m modpacker.Mod) error

func (*ArchiveBuilder) AddReader

func (b *ArchiveBuilder) AddReader(r io.Reader, name string) error

func (*ArchiveBuilder) AddUnzip

func (b *ArchiveBuilder) AddUnzip(f billy.File, dir string) error

func (*ArchiveBuilder) AddZipFile

func (b *ArchiveBuilder) AddZipFile(f *zip.File, name string) error

func (*ArchiveBuilder) Close

func (b *ArchiveBuilder) Close() error

Jump to

Keyboard shortcuts

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