type ignoreFilesMatcher … // readIgnoreFile checks whether there is a .krmignore file in the path, and // if it is, reads it in and turns it into a matcher. If we can't find a file, // we just add a matcher that match nothing. func (i *ignoreFilesMatcher) readIgnoreFile(path string) error { … } // verifyPath checks whether the top matcher on the stack // is correct for the provided filepath. Matchers are removed once // we encounter a filepath that is not a subpath of the basepath for // the matcher. func (i *ignoreFilesMatcher) verifyPath(path string) { … } // matchFile checks whether the file given by the provided path matches // any of the patterns in the .krmignore file for the package. func (i *ignoreFilesMatcher) matchFile(path string) bool { … } // matchDir checks whether the directory given by the provided path matches // any of the patterns in the .krmignore file for the package. func (i *ignoreFilesMatcher) matchDir(path string) bool { … } type matcher …