Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDockerignore ¶
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.
Click to show internal directories.
Click to hide internal directories.