Documentation ¶
Index ¶
- type Instruction
- func (it *Instruction) ExcludingNamesHashset() *corestr.Hashset
- func (it *Instruction) ExcludingPathsHashset() *corestr.Hashset
- func (it *Instruction) HasExcludingPaths() bool
- func (it *Instruction) HasExcludingRootNames() bool
- func (it *Instruction) Result() *Result
- func (it *Instruction) SliceResult() *corestr.SimpleSlice
- func (it *Instruction) StringsResults() *errstr.Results
- func (it *Instruction) StringsResultsWithoutUnc() *errstr.Results
- type PathsResult
- func (it *PathsResult) Clone() *PathsResult
- func (it *PathsResult) ConcatNew(isClone bool, other *PathsResult) *PathsResult
- func (it *PathsResult) IsDistinctEqualItems(another *PathsResult) bool
- func (it *PathsResult) IsEqual(another *PathsResult) bool
- func (it *PathsResult) IsEqualOnlyItems(another *PathsResult) bool
- func (it *PathsResult) JoinWithRoot(isFixAll, isNormalize bool, root string) *corestr.SimpleSlice
- type Result
- func (it *Result) Clone() *Result
- func (it *Result) FilterResults(filter pathfuncs.Filter) *Result
- func (it *Result) FilterStringsResults(filter pathfuncs.Filter) *errstr.Results
- func (it *Result) HasAnyItem() bool
- func (it *Result) HasIssuesOrEmpty() bool
- func (it *Result) HasSafeItems() bool
- func (it *Result) IsEmpty() bool
- func (it *Result) IsEmptyPathStat() bool
- func (it *Result) Length() int
- func (it *Result) Paths() []string
- func (it *Result) PathsString() string
- func (it *Result) Strings() []string
- func (it *Result) StringsResults() *errstr.Results
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instruction ¶
type Instruction struct { Root string ExcludingRootNames []string // root file or dir names contains in this will be ignored ExcludingPaths []string // path contains in this will be ignored IsRecursive, IsRelativePath, IsIncludeAll, IsIncludeDirsOnly, IsIncludeFilesOnly, IsNormalize, IsExpandEnvironmentVar, IsExcludeRoot bool // Don't include root path // contains filtered or unexported fields }
func (*Instruction) ExcludingNamesHashset ¶
func (it *Instruction) ExcludingNamesHashset() *corestr.Hashset
func (*Instruction) ExcludingPathsHashset ¶ added in v0.3.6
func (it *Instruction) ExcludingPathsHashset() *corestr.Hashset
func (*Instruction) HasExcludingPaths ¶ added in v0.3.6
func (it *Instruction) HasExcludingPaths() bool
func (*Instruction) HasExcludingRootNames ¶ added in v0.3.6
func (it *Instruction) HasExcludingRootNames() bool
func (*Instruction) Result ¶
func (it *Instruction) Result() *Result
func (*Instruction) SliceResult ¶ added in v0.3.6
func (it *Instruction) SliceResult() *corestr.SimpleSlice
func (*Instruction) StringsResults ¶ added in v0.3.8
func (it *Instruction) StringsResults() *errstr.Results
func (*Instruction) StringsResultsWithoutUnc ¶ added in v0.4.3
func (it *Instruction) StringsResultsWithoutUnc() *errstr.Results
type PathsResult ¶
type PathsResult struct { ExpandingPaths *corestr.SimpleSlice IsExist, IsFile, IsDir bool }
func EmptyPathsResult ¶ added in v0.3.8
func EmptyPathsResult() *PathsResult
func (*PathsResult) Clone ¶
func (it *PathsResult) Clone() *PathsResult
func (*PathsResult) ConcatNew ¶
func (it *PathsResult) ConcatNew( isClone bool, other *PathsResult, ) *PathsResult
func (*PathsResult) IsDistinctEqualItems ¶ added in v0.3.6
func (it *PathsResult) IsDistinctEqualItems(another *PathsResult) bool
func (*PathsResult) IsEqual ¶ added in v0.3.6
func (it *PathsResult) IsEqual(another *PathsResult) bool
func (*PathsResult) IsEqualOnlyItems ¶ added in v0.3.6
func (it *PathsResult) IsEqualOnlyItems(another *PathsResult) bool
func (*PathsResult) JoinWithRoot ¶
func (it *PathsResult) JoinWithRoot( isFixAll, isNormalize bool, root string, ) *corestr.SimpleSlice
type Result ¶
type Result struct { Root string PathStat *chmodhelper.PathExistStat IsInvalidResult bool IsRelative bool PathsResult *PathsResult ErrorWrapper *errorwrapper.Wrapper }
func GetInstructionResult ¶
func GetInstructionResult(instruction *Instruction) *Result
GetInstructionResult returns result
func InvalidResult ¶
func InvalidResult( root string, errorWrapper *errorwrapper.Wrapper, stat *chmodhelper.PathExistStat, ) *Result
func (*Result) FilterResults ¶ added in v0.3.8
func (*Result) FilterStringsResults ¶ added in v0.3.8
func (*Result) HasAnyItem ¶ added in v0.3.8
func (*Result) HasIssuesOrEmpty ¶ added in v0.3.8
func (*Result) HasSafeItems ¶ added in v0.3.8
func (*Result) IsEmptyPathStat ¶
func (*Result) PathsString ¶
func (*Result) StringsResults ¶ added in v0.3.8
Click to show internal directories.
Click to hide internal directories.