Documentation ¶
Index ¶
- Constants
- func BuildMatchList(sourcePattern *regexp.Regexp, subject string) []string
- func GlobToRegexString(glob string) string
- func StrToAge(t string, reference time.Time) (time.Time, error)
- func StrToSize(sizeString string) (int64, error)
- type BasePattern
- type DestinationPattern
- type SourcePattern
Constants ¶
View Source
const ( CASE_SENSITIVE bitflag.Flag = 1 << iota USE_REAL_REGEX )
Variables ¶
This section is empty.
Functions ¶
func GlobToRegexString ¶
Types ¶
type BasePattern ¶
type BasePattern struct { Fs afero.Fs Path string Pattern string // contains filtered or unexported fields }
func NewBasePattern ¶
func NewBasePattern(fs afero.Fs, patternString string) *BasePattern
func (*BasePattern) IsDir ¶
func (p *BasePattern) IsDir() bool
func (*BasePattern) IsFile ¶
func (p *BasePattern) IsFile() bool
type DestinationPattern ¶
type DestinationPattern struct {
BasePattern
}
func NewDestinationPattern ¶
func NewDestinationPattern(fs afero.Fs, patternString string) *DestinationPattern
type SourcePattern ¶
type SourcePattern struct { BasePattern // contains filtered or unexported fields }
func NewSourcePattern ¶
Click to show internal directories.
Click to hide internal directories.