ignorer

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignorer

type Ignorer interface {
	// Ignore returns true to ignore a file, and false to include the file.
	Ignore(relPath string) bool
}

Ignorer is an interface for conditionally ignoring files or directory trees when creating a tarball.

func Merge

func Merge(ignorers ...Ignorer) Ignorer

Merge returns an Ignorer implementation that returns true if any of the provided ignorers return true.

func NewFileIncluder

func NewFileIncluder(relPaths []string) Ignorer

NewFileIncluder creates an Ignorer that will ignore all files except the given files. Parent directories of the given files are also included.

Jump to

Keyboard shortcuts

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