ignore

package
v0.0.0-...-6bf0215 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDockerignore

func ParseDockerignore(r io.Reader) ([]string, error)

ParseDockerignore returns statements in a .dockerignore file contents that can be matched to files with filepath.Match. https://docs.docker.com/engine/reference/builder/#dockerignore-file

Types

type FileIgnores

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

func NewFileIgnores

func NewFileIgnores(rules []string) *FileIgnores

func (*FileIgnores) Ignored

func (f *FileIgnores) Ignored(path string) bool

Ignored tests if given relative path is excluded. If FileIgnores is nil, it would not ignore any files.

Jump to

Keyboard shortcuts

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