Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyMatcher ¶ added in v0.9.3
type EmptyMatcher struct { }
func (EmptyMatcher) Exclusions ¶ added in v0.9.3
func (EmptyMatcher) Exclusions() bool
type Notify ¶
type Notify interface { // Start watching the paths set at init time Start() error // Stop watching and close all channels Close() error // A channel to read off incoming file changes Events() chan FileEvent // A channel to read off show-stopping errors Errors() chan error }
func NewWatcher ¶
type PathMatcher ¶ added in v0.9.3
When we specify directories to watch, we often want to ignore some subset of the files under those directories.
For example: - Watch /src/repo, but ignore /src/repo/.git - Watch /src/repo, but ignore everything in /src/repo/bazel-bin except /src/repo/bazel-bin/app-binary
The PathMatcher inteface helps us manage these ignores. By design, fileutils.PatternMatcher (the interface that implements dockerignore) satisfies this interface https://godoc.org/github.com/docker/docker/pkg/fileutils#PatternMatcher
type TempDir ¶
type TempDir struct {
// contains filtered or unexported fields
}
TempDir holds a temp directory and allows easy access to new temp directories.
func NewDirAtRoot ¶
NewDir creates a new TempDir at the given root.
func NewDirAtSlashTmp ¶
NewDirAtSlashTmp creates a new TempDir at /tmp