ignore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = ".buildrignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignorer

type Ignorer struct {
	// contains filtered or unexported fields
}

func MustNewIgnorer

func MustNewIgnorer(dir string, additionalPatterns ...string) *Ignorer

func NewIgnorer

func NewIgnorer(dir string, additionalPatterns ...string) (*Ignorer, error)

func (*Ignorer) AddPatterns

func (ig *Ignorer) AddPatterns(patterns ...string) error

func (*Ignorer) Ignore

func (ig *Ignorer) Ignore(path string) (ignore bool)

func (*Ignorer) Open

func (ig *Ignorer) Open(name string) (f fs.File, err error)

func (*Ignorer) ReadDir

func (ig *Ignorer) ReadDir(name string) (result []fs.DirEntry, err error)

func (*Ignorer) SetParent

func (ig *Ignorer) SetParent(parent *Ignorer)

func (*Ignorer) Stat

func (ig *Ignorer) Stat(name string) (info fs.FileInfo, err error)

func (*Ignorer) WalkDir

func (ig *Ignorer) WalkDir(root string, walkFunc fs.WalkDirFunc) (err error)

Jump to

Keyboard shortcuts

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