archive

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(fileSystem fs.FS, w io.Writer, opts ...CreateOption) error

Create an archive from given options to the given writer.

Types

type CreateOption

type CreateOption func(opts *createOptions)

func ExcludeFiles

func ExcludeFiles(values ...string) CreateOption

ExcludeFiles sets the file exclusion filter values.

func IncludeFiles

func IncludeFiles(values ...string) CreateOption

IncludeFiles sets the file inclusion filter values.

func WithCreateRootPath

func WithCreateRootPath(value string) CreateOption

WithCreateRootPath sets the root path for archive creation.

Jump to

Keyboard shortcuts

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