Documentation
¶
Index ¶
- type ListDirectoryOptions
- func (l *ListDirectoryOptions) GetRecursive() (recursive bool)
- func (l *ListDirectoryOptions) GetReturnRelativePaths() (returnRelativePaths bool)
- func (l *ListDirectoryOptions) GetVerbose() (verbose bool)
- func (l *ListDirectoryOptions) SetRecursive(recursive bool)
- func (l *ListDirectoryOptions) SetReturnRelativePaths(returnRelativePaths bool)
- func (l *ListDirectoryOptions) SetVerbose(verbose bool)
- type ListFileOptions
- func (l *ListFileOptions) GetAllowEmptyListIfNoFileIsFound() (allowEmptyListIfNoFileIsFound bool, err error)
- func (o *ListFileOptions) GetDeepCopy() (deepCopy *ListFileOptions)
- func (l *ListFileOptions) GetExcludeBasenamePattern() (excludePattern []string, err error)
- func (l *ListFileOptions) GetExcludeBasenamePatternOrEmptySliceIfUnset() (excludePattern []string)
- func (l *ListFileOptions) GetExcludePatternWholepath() (excludePatternWholepath []string, err error)
- func (l *ListFileOptions) GetMatchBasenamePattern() (matchPattern []string, err error)
- func (l *ListFileOptions) GetMatchBasenamePatternOrEmptySliceIfUnset() (excludePattern []string)
- func (l *ListFileOptions) GetNonRecursive() (nonRecursive bool, err error)
- func (l *ListFileOptions) GetOnlyFiles() (onlyFiles bool, err error)
- func (l *ListFileOptions) GetReturnRelativePaths() (returnRelativePaths bool, err error)
- func (l *ListFileOptions) GetVerbose() (verbose bool, err error)
- func (l *ListFileOptions) IsExcludeBasenamePatternSet() (isSet bool)
- func (l *ListFileOptions) IsExcludePatternWholepathSet() (isSet bool)
- func (l *ListFileOptions) IsMatchBasenamePatternSet() (isSet bool)
- func (l *ListFileOptions) MustGetAllowEmptyListIfNoFileIsFound() (allowEmptyListIfNoFileIsFound bool)
- func (l *ListFileOptions) MustGetExcludeBasenamePattern() (excludePattern []string)
- func (l *ListFileOptions) MustGetExcludePatternWholepath() (excludePatternWholepath []string)
- func (l *ListFileOptions) MustGetMatchBasenamePattern() (matchPattern []string)
- func (l *ListFileOptions) MustGetNonRecursive() (nonRecursive bool)
- func (l *ListFileOptions) MustGetOnlyFiles() (onlyFiles bool)
- func (l *ListFileOptions) MustGetReturnRelativePaths() (returnRelativePaths bool)
- func (l *ListFileOptions) MustGetVerbose() (verbose bool)
- func (l *ListFileOptions) MustSetAllowEmptyListIfNoFileIsFound(allowEmptyListIfNoFileIsFound bool)
- func (l *ListFileOptions) MustSetExcludeBasenamePattern(excludeBasenamePattern []string)
- func (l *ListFileOptions) MustSetExcludePattern(excludePattern []string)
- func (l *ListFileOptions) MustSetExcludePatternWholepath(excludePatternWholepath []string)
- func (l *ListFileOptions) MustSetMatchBasenamePattern(matchBasenamePattern []string)
- func (l *ListFileOptions) MustSetMatchPattern(matchPattern []string)
- func (l *ListFileOptions) MustSetNonRecursive(nonRecursive bool)
- func (l *ListFileOptions) MustSetOnlyFiles(onlyFiles bool)
- func (l *ListFileOptions) MustSetReturnRelativePaths(returnRelativePaths bool)
- func (l *ListFileOptions) MustSetVerbose(verbose bool)
- func (l *ListFileOptions) SetAllowEmptyListIfNoFileIsFound(allowEmptyListIfNoFileIsFound bool) (err error)
- func (l *ListFileOptions) SetExcludeBasenamePattern(excludeBasenamePattern []string) (err error)
- func (l *ListFileOptions) SetExcludePattern(excludePattern []string) (err error)
- func (l *ListFileOptions) SetExcludePatternWholepath(excludePatternWholepath []string) (err error)
- func (l *ListFileOptions) SetMatchBasenamePattern(matchBasenamePattern []string) (err error)
- func (l *ListFileOptions) SetMatchPattern(matchPattern []string) (err error)
- func (l *ListFileOptions) SetNonRecursive(nonRecursive bool) (err error)
- func (l *ListFileOptions) SetOnlyFiles(onlyFiles bool) (err error)
- func (l *ListFileOptions) SetReturnRelativePaths(returnRelativePaths bool) (err error)
- func (l *ListFileOptions) SetVerbose(verbose bool) (err error)
- type PathFilterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListDirectoryOptions ¶
type ListDirectoryOptions struct { // Enable recursive file and/or directory listing: Recursive bool // Return paths relative to the directory to list: ReturnRelativePaths bool // Enable verbose output Verbose bool }
func NewListDirectoryOptions ¶
func NewListDirectoryOptions() (l *ListDirectoryOptions)
func (*ListDirectoryOptions) GetRecursive ¶
func (l *ListDirectoryOptions) GetRecursive() (recursive bool)
func (*ListDirectoryOptions) GetReturnRelativePaths ¶
func (l *ListDirectoryOptions) GetReturnRelativePaths() (returnRelativePaths bool)
func (*ListDirectoryOptions) GetVerbose ¶
func (l *ListDirectoryOptions) GetVerbose() (verbose bool)
func (*ListDirectoryOptions) SetRecursive ¶
func (l *ListDirectoryOptions) SetRecursive(recursive bool)
func (*ListDirectoryOptions) SetReturnRelativePaths ¶
func (l *ListDirectoryOptions) SetReturnRelativePaths(returnRelativePaths bool)
func (*ListDirectoryOptions) SetVerbose ¶
func (l *ListDirectoryOptions) SetVerbose(verbose bool)
type ListFileOptions ¶
type ListFileOptions struct { MatchBasenamePattern []string ExcludeBasenamePattern []string ExcludePatternWholepath []string ReturnRelativePaths bool OnlyFiles bool NonRecursive bool AllowEmptyListIfNoFileIsFound bool Verbose bool }
func NewListFileOptions ¶
func NewListFileOptions() (l *ListFileOptions)
func (*ListFileOptions) GetAllowEmptyListIfNoFileIsFound ¶
func (l *ListFileOptions) GetAllowEmptyListIfNoFileIsFound() (allowEmptyListIfNoFileIsFound bool, err error)
func (*ListFileOptions) GetDeepCopy ¶
func (o *ListFileOptions) GetDeepCopy() (deepCopy *ListFileOptions)
func (*ListFileOptions) GetExcludeBasenamePattern ¶
func (l *ListFileOptions) GetExcludeBasenamePattern() (excludePattern []string, err error)
func (*ListFileOptions) GetExcludeBasenamePatternOrEmptySliceIfUnset ¶
func (l *ListFileOptions) GetExcludeBasenamePatternOrEmptySliceIfUnset() (excludePattern []string)
func (*ListFileOptions) GetExcludePatternWholepath ¶
func (l *ListFileOptions) GetExcludePatternWholepath() (excludePatternWholepath []string, err error)
func (*ListFileOptions) GetMatchBasenamePattern ¶
func (l *ListFileOptions) GetMatchBasenamePattern() (matchPattern []string, err error)
func (*ListFileOptions) GetMatchBasenamePatternOrEmptySliceIfUnset ¶
func (l *ListFileOptions) GetMatchBasenamePatternOrEmptySliceIfUnset() (excludePattern []string)
func (*ListFileOptions) GetNonRecursive ¶
func (l *ListFileOptions) GetNonRecursive() (nonRecursive bool, err error)
func (*ListFileOptions) GetOnlyFiles ¶
func (l *ListFileOptions) GetOnlyFiles() (onlyFiles bool, err error)
func (*ListFileOptions) GetReturnRelativePaths ¶
func (l *ListFileOptions) GetReturnRelativePaths() (returnRelativePaths bool, err error)
func (*ListFileOptions) GetVerbose ¶
func (l *ListFileOptions) GetVerbose() (verbose bool, err error)
func (*ListFileOptions) IsExcludeBasenamePatternSet ¶
func (l *ListFileOptions) IsExcludeBasenamePatternSet() (isSet bool)
func (*ListFileOptions) IsExcludePatternWholepathSet ¶
func (l *ListFileOptions) IsExcludePatternWholepathSet() (isSet bool)
func (*ListFileOptions) IsMatchBasenamePatternSet ¶
func (l *ListFileOptions) IsMatchBasenamePatternSet() (isSet bool)
func (*ListFileOptions) MustGetAllowEmptyListIfNoFileIsFound ¶
func (l *ListFileOptions) MustGetAllowEmptyListIfNoFileIsFound() (allowEmptyListIfNoFileIsFound bool)
func (*ListFileOptions) MustGetExcludeBasenamePattern ¶
func (l *ListFileOptions) MustGetExcludeBasenamePattern() (excludePattern []string)
func (*ListFileOptions) MustGetExcludePatternWholepath ¶
func (l *ListFileOptions) MustGetExcludePatternWholepath() (excludePatternWholepath []string)
func (*ListFileOptions) MustGetMatchBasenamePattern ¶
func (l *ListFileOptions) MustGetMatchBasenamePattern() (matchPattern []string)
func (*ListFileOptions) MustGetNonRecursive ¶
func (l *ListFileOptions) MustGetNonRecursive() (nonRecursive bool)
func (*ListFileOptions) MustGetOnlyFiles ¶
func (l *ListFileOptions) MustGetOnlyFiles() (onlyFiles bool)
func (*ListFileOptions) MustGetReturnRelativePaths ¶
func (l *ListFileOptions) MustGetReturnRelativePaths() (returnRelativePaths bool)
func (*ListFileOptions) MustGetVerbose ¶
func (l *ListFileOptions) MustGetVerbose() (verbose bool)
func (*ListFileOptions) MustSetAllowEmptyListIfNoFileIsFound ¶
func (l *ListFileOptions) MustSetAllowEmptyListIfNoFileIsFound(allowEmptyListIfNoFileIsFound bool)
func (*ListFileOptions) MustSetExcludeBasenamePattern ¶
func (l *ListFileOptions) MustSetExcludeBasenamePattern(excludeBasenamePattern []string)
func (*ListFileOptions) MustSetExcludePattern ¶
func (l *ListFileOptions) MustSetExcludePattern(excludePattern []string)
func (*ListFileOptions) MustSetExcludePatternWholepath ¶
func (l *ListFileOptions) MustSetExcludePatternWholepath(excludePatternWholepath []string)
func (*ListFileOptions) MustSetMatchBasenamePattern ¶
func (l *ListFileOptions) MustSetMatchBasenamePattern(matchBasenamePattern []string)
func (*ListFileOptions) MustSetMatchPattern ¶
func (l *ListFileOptions) MustSetMatchPattern(matchPattern []string)
func (*ListFileOptions) MustSetNonRecursive ¶
func (l *ListFileOptions) MustSetNonRecursive(nonRecursive bool)
func (*ListFileOptions) MustSetOnlyFiles ¶
func (l *ListFileOptions) MustSetOnlyFiles(onlyFiles bool)
func (*ListFileOptions) MustSetReturnRelativePaths ¶
func (l *ListFileOptions) MustSetReturnRelativePaths(returnRelativePaths bool)
func (*ListFileOptions) MustSetVerbose ¶
func (l *ListFileOptions) MustSetVerbose(verbose bool)
func (*ListFileOptions) SetAllowEmptyListIfNoFileIsFound ¶
func (l *ListFileOptions) SetAllowEmptyListIfNoFileIsFound(allowEmptyListIfNoFileIsFound bool) (err error)
func (*ListFileOptions) SetExcludeBasenamePattern ¶
func (l *ListFileOptions) SetExcludeBasenamePattern(excludeBasenamePattern []string) (err error)
func (*ListFileOptions) SetExcludePattern ¶
func (l *ListFileOptions) SetExcludePattern(excludePattern []string) (err error)
func (*ListFileOptions) SetExcludePatternWholepath ¶
func (l *ListFileOptions) SetExcludePatternWholepath(excludePatternWholepath []string) (err error)
func (*ListFileOptions) SetMatchBasenamePattern ¶
func (l *ListFileOptions) SetMatchBasenamePattern(matchBasenamePattern []string) (err error)
func (*ListFileOptions) SetMatchPattern ¶
func (l *ListFileOptions) SetMatchPattern(matchPattern []string) (err error)
func (*ListFileOptions) SetNonRecursive ¶
func (l *ListFileOptions) SetNonRecursive(nonRecursive bool) (err error)
func (*ListFileOptions) SetOnlyFiles ¶
func (l *ListFileOptions) SetOnlyFiles(onlyFiles bool) (err error)
func (*ListFileOptions) SetReturnRelativePaths ¶
func (l *ListFileOptions) SetReturnRelativePaths(returnRelativePaths bool) (err error)
func (*ListFileOptions) SetVerbose ¶
func (l *ListFileOptions) SetVerbose(verbose bool) (err error)
type PathFilterOptions ¶
type PathFilterOptions interface { // Filters for matching base name: GetMatchBasenamePattern() (matchPattern []string, err error) IsMatchBasenamePatternSet() (isSet bool) // Filters for excluding base name: GetExcludeBasenamePattern() (excludePattern []string, err error) IsExcludeBasenamePatternSet() (isSet bool) // Filters for exluding wholepaths: GetExcludePatternWholepath() (excludePattern []string, err error) IsExcludePatternWholepathSet() (isSet bool) }
Options to filter a list of paths.
Click to show internal directories.
Click to hide internal directories.