gopkg.in/docker/docker.v23@v23.0.11/pkg/fileutils/deprecated.go (about)

     1  package fileutils
     2  
     3  import "github.com/moby/patternmatcher"
     4  
     5  type (
     6  	// PatternMatcher allows checking paths against a list of patterns.
     7  	//
     8  	// Deprecated: use github.com/moby/patternmatcher.PatternMatcher
     9  	PatternMatcher = patternmatcher.PatternMatcher
    10  
    11  	// MatchInfo tracks information about parent dir matches while traversing a
    12  	// filesystem.
    13  	//
    14  	// Deprecated: use github.com/moby/patternmatcher.MatchInfo
    15  	MatchInfo = patternmatcher.MatchInfo
    16  
    17  	// Pattern defines a single regexp used to filter file paths.
    18  	//
    19  	// Deprecated: use github.com/moby/patternmatcher.Pattern
    20  	Pattern = patternmatcher.Pattern
    21  )
    22  
    23  var (
    24  	// NewPatternMatcher creates a new matcher object for specific patterns that can
    25  	// be used later to match against patterns against paths
    26  	//
    27  	// Deprecated: use github.com/moby/patternmatcher.New
    28  	NewPatternMatcher = patternmatcher.New
    29  
    30  	// Matches returns true if file matches any of the patterns
    31  	// and isn't excluded by any of the subsequent patterns.
    32  	//
    33  	// This implementation is buggy (it only checks a single parent dir against the
    34  	// pattern) and will be removed soon. Use MatchesOrParentMatches instead.
    35  	//
    36  	// Deprecated: use github.com/moby/patternmatcher.Matches
    37  	Matches = patternmatcher.Matches
    38  
    39  	// MatchesOrParentMatches returns true if file matches any of the patterns
    40  	// and isn't excluded by any of the subsequent patterns.
    41  	//
    42  	// Deprecated: use github.com/moby/patternmatcher.MatchesOrParentMatches
    43  	MatchesOrParentMatches = patternmatcher.MatchesOrParentMatches
    44  )