Documentation ¶
Index ¶
- type BasePathPermission
- type Directory
- type ExistFilter
- type Filter
- type LazyPath
- func (it *LazyPath) Clone() *LazyPath
- func (it *LazyPath) Error() error
- func (it *LazyPath) ErrorWrapper() *errorwrapper.Wrapper
- func (it *LazyPath) FileInfo() os.FileInfo
- func (it *LazyPath) FileMode() os.FileMode
- func (it *LazyPath) HasFileInfo() bool
- func (it *LazyPath) IsDir() bool
- func (it *LazyPath) IsExist() bool
- func (it *LazyPath) IsExistButDir() bool
- func (it *LazyPath) IsExistButFile() bool
- func (it *LazyPath) IsFile() bool
- func (it *LazyPath) LocationInfo() *pathhelper.LocationInfo
- func (it *LazyPath) PathExistStat() *chmodhelper.PathExistStat
- func (it *LazyPath) SimpleStat() *pathchmod.SimpleStat
- type Path
- func (it *Path) AllDirsSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
- func (it *Path) AllFilesSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
- func (it *Path) AllPaths() *errstr.Results
- func (it *Path) AllPathsSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
- func (it *Path) ApplyChown(chown *pathinsfmt.Chown) *errorwrapper.Wrapper
- func (it *Path) ApplyFileMode(mode os.FileMode) *errorwrapper.Wrapper
- func (it *Path) ApplyPathVerifier(isSkipOnInvalid bool, errorCollection *errwrappers.Collection, ...) (isSuccess bool)
- func (it *Path) ApplyPathVerifiers(errorCollection *errwrappers.Collection, ...) (isSuccess bool)
- func (it *Path) ApplyRwxInstruction(rwx *chmodins.RwxInstruction) *errorwrapper.Wrapper
- func (it *Path) BaseDir() string
- func (it *Path) BothExt() (dotExt, ext string)
- func (it *Path) CheckSummer(isAsync, isRecursive bool, hashMethod hashas.Variant) *checksummer.Instance
- func (it *Path) ChmodCondition() *chmodins.Condition
- func (it *Path) ClonePath() *Path
- func (it *Path) ClonePathUsingNew(newLocation string) *Path
- func (it *Path) Combine(relativePaths ...string) string
- func (it *Path) CombineWithElitePaths(enhancePaths ...*Path) string
- func (it *Path) CombineWithElitePathsToElitePath(enhancePaths ...*Path) *Path
- func (it *Path) CopyTo(isClearBefore, isRecursive bool, toPath string) *errorwrapper.Wrapper
- func (it *Path) DeletePath(isSkipOnNonExist bool) *errorwrapper.Wrapper
- func (it *Path) Directories() *errstr.Results
- func (it *Path) FileNameWithExt() string
- func (it *Path) FileNameWithoutExt() string
- func (it *Path) Files() *errstr.Results
- func (it *Path) FixedPathAsSlice() []string
- func (it *Path) IsChecksumEqual(isRecursive bool, hashMethod hashas.Variant, comparingPath string) bool
- func (it *Path) IsDotExtension(dotExtCompare string) bool
- func (it *Path) IsEqual(another *Path) bool
- func (it *Path) IsEqualWithoutOptions(another *Path) bool
- func (it *Path) IsExtension(extCompare string) bool
- func (it *Path) IsFilterMatch(filter *Filter) bool
- func (it *Path) Join(location string) string
- func (it *Path) Join2(location1, location2 string) string
- func (it *Path) Joins(isNormalize bool, locations ...string) string
- func (it *Path) JoinsToPath(relativePaths ...string) *Path
- func (it *Path) LazyPath() *LazyPath
- func (it *Path) LocationInfo() *pathhelper.LocationInfo
- func (it *Path) Move(toPath string) *errorwrapper.Wrapper
- func (it *Path) MoveTo(isClearBefore, isRecursive bool, toPath string) *errorwrapper.Wrapper
- func (it *Path) NotDirError() *errorwrapper.Wrapper
- func (it *Path) NotFileError() *errorwrapper.Wrapper
- func (it *Path) OsFile(existingErrorWrapper *errorwrapper.Wrapper, osFlag int, fileMode os.FileMode) *fs.OsFile
- func (it *Path) ParentDir() string
- func (it *Path) ParentDirPath() *Path
- func (it *Path) PathExtWrapper() *pathext.Wrapper
- func (it *Path) PathLinuxStat() *pathstatlinux.Info
- func (it *Path) PathWrapper() pathwrapper.Wrapper
- func (it *Path) ReadFileBytes() *errbyte.Results
- func (it *Path) ReadFileBytesMust() []byte
- func (it *Path) ReadFileString() *errstr.Result
- func (it *Path) ReadFileStringMust() string
- func (it *Path) ReadFileUnmarshal(unmarshallingObjectRef interface{}) *errorwrapper.Wrapper
- func (it *Path) ReadJsonParseSelfInjector(injector corejson.JsonParseSelfInjector) *errorwrapper.Wrapper
- func (it *Path) ReadLines() *errstr.Results
- func (it *Path) ReadLinesMust() []string
- func (it *Path) RecursiveDirPaths(isRelativePath bool, excludeRootNames ...string) *corestr.SimpleSlice
- func (it *Path) RecursiveFilePaths(isRelativePath bool, excludeRootNames ...string) *corestr.SimpleSlice
- func (it *Path) RecursivePathsAll(isRelativePath bool, isExcludeRootName bool, excludeRootNames ...string) *corestr.SimpleSlice
- func (it *Path) RwxWrapper() *pathchmod.RwxWrapperWithError
- func (it *Path) SimpleStat() *pathchmod.SimpleStat
- func (it *Path) VerifyCheckSumTreeError(isRecursive bool, hashMethod hashas.Variant, comparingPath string) *errwrappers.Collection
- func (it *Path) WriteLines(lines []string) *errorwrapper.Wrapper
- type PathCollection
- func (it *PathCollection) Add(path *Path) *PathCollection
- func (it *PathCollection) AddCollections(collections ...*PathCollection) *PathCollection
- func (it *PathCollection) AddDir(path *Path) *PathCollection
- func (it *PathCollection) AddFile(path *Path) *PathCollection
- func (it *PathCollection) AddFilterMatch(filter *Filter, path *Path) *PathCollection
- func (it *PathCollection) AddIf(isAdd bool, path *Path) *PathCollection
- func (it *PathCollection) AddValid(path *Path) *PathCollection
- func (it *PathCollection) AddsFilterMatch(filter *Filter, paths ...*Path) *PathCollection
- func (it *PathCollection) AddsRaw(paths ...string) *PathCollection
- func (it *PathCollection) AddsRawUsingOption(options pathfixer.PathOptions, paths ...string) *PathCollection
- func (it *PathCollection) AddsRawValid(paths ...string) *PathCollection
- func (it *PathCollection) AllDirs() []string
- func (it *PathCollection) AllDirsPaths() *PathCollection
- func (it *PathCollection) AllExistPaths() []string
- func (it *PathCollection) AllExistPathsCollection() *PathCollection
- func (it *PathCollection) AllFiles() []string
- func (it *PathCollection) AllFilesPaths() *PathCollection
- func (it *PathCollection) AsBasicSliceContractsBinder() coreinterface.BasicSlicerContractsBinder
- func (it *PathCollection) AsJsonMarshaller() corejson.JsonMarshaller
- func (it *PathCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
- func (it *PathCollection) AsJsoner() corejson.Jsoner
- func (it *PathCollection) ConcatNew(collections ...*PathCollection) *PathCollection
- func (it *PathCollection) Count() int
- func (it *PathCollection) ExecuteAll(isContinueOnError bool, errCollection *errwrappers.Collection, ...) (isSuccess bool)
- func (it *PathCollection) Filter(filter *Filter) []string
- func (it *PathCollection) FilterPathCollection(filter *Filter) *PathCollection
- func (it *PathCollection) First() *Path
- func (it *PathCollection) FirstDynamic() interface{}
- func (it *PathCollection) FirstOrDefault() *Path
- func (it *PathCollection) FirstOrDefaultDynamic() interface{}
- func (it *PathCollection) HasAnyItem() bool
- func (it *PathCollection) HasIndex(index int) bool
- func (it *PathCollection) IsEmpty() bool
- func (it *PathCollection) Json() *corejson.Result
- func (it *PathCollection) JsonModel() *PathCollection
- func (it *PathCollection) JsonModelAny() interface{}
- func (it *PathCollection) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (it *PathCollection) Last() *Path
- func (it *PathCollection) LastDynamic() interface{}
- func (it *PathCollection) LastIndex() int
- func (it *PathCollection) LastOrDefault() interface{}
- func (it *PathCollection) LastOrDefaultDynamic() interface{}
- func (it *PathCollection) Length() int
- func (it *PathCollection) Limit(limit int) *PathCollection
- func (it *PathCollection) LimitDynamic(limit int) interface{}
- func (it *PathCollection) MarshalJSON() ([]byte, error)
- func (it *PathCollection) ParseInjectUsingJson(jsonResult *corejson.Result) (*PathCollection, error)
- func (it *PathCollection) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *PathCollection
- func (it *PathCollection) PathMatchesWithRegex(regexp *regexp.Regexp) []string
- func (it *PathCollection) ReadFromFile(filePath string) *errorwrapper.Wrapper
- func (it *PathCollection) SaveToFile(filePath string) *errorwrapper.Wrapper
- func (it *PathCollection) Skip(skippingItemsCount int) *PathCollection
- func (it *PathCollection) SkipDynamic(skippingItemsCount int) interface{}
- func (it *PathCollection) String() string
- func (it *PathCollection) Strings() []string
- func (it *PathCollection) Take(takeDynamicItems int) *PathCollection
- func (it *PathCollection) TakeDynamic(takeDynamicItems int) interface{}
- func (it *PathCollection) UnmarshalJSON(data []byte) error
- type ValueFilter
- type WithPermission
- func NewWithPermissionPtr(isNormalize, isExpandEnvVars bool, location string) *WithPermission
- func NewWithPermissionRwxChown(isNormalize, isExpandEnvVars bool, rwx *chmodins.RwxInstruction, ...) WithPermission
- func NewWithPermissionRwxChownPtr(isNormalize, isExpandEnvVars bool, rwx *chmodins.RwxInstruction, ...) *WithPermission
- func (it *WithPermission) Apply(isSkipOnInvalid bool) *errwrappers.Collection
- func (it *WithPermission) ApplyChown() *errorwrapper.Wrapper
- func (it *WithPermission) ApplyPathVerifier(isSkipOnInvalid bool, errorCollection *errwrappers.Collection) (isSuccess bool)
- func (it *WithPermission) ApplyPathVerifiers(errorCollection *errwrappers.Collection) (isSuccess bool)
- func (it *WithPermission) ApplyRwx() *errorwrapper.Wrapper
- func (it *WithPermission) ApplyUsingErrorCollection(isSkipOnInvalid bool, errorCollection *errwrappers.Collection) (isSuccess bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePathPermission ¶ added in v0.3.5
type BasePathPermission struct { RwxInstruction *chmodins.RwxInstruction `json:"RwxInstruction,omitempty"` Chown *pathinsfmt.Chown `json:"Chown,omitempty"` }
func (*BasePathPermission) HasChown ¶ added in v0.3.5
func (it *BasePathPermission) HasChown() bool
func (*BasePathPermission) HasRwx ¶ added in v0.3.5
func (it *BasePathPermission) HasRwx() bool
func (*BasePathPermission) IsEmptyChown ¶ added in v0.3.5
func (it *BasePathPermission) IsEmptyChown() bool
func (*BasePathPermission) IsEmptyRwx ¶ added in v0.3.5
func (it *BasePathPermission) IsEmptyRwx() bool
type Directory ¶ added in v0.3.5
type Directory struct { WithPermission IsClearDir bool `json:"IsClearDir,omitempty"` IsApplyDefaultChmodGroups bool `json:"IsApplyDefaultChmodGroups,omitempty"` }
func NewDirectory ¶ added in v0.3.6
type ExistFilter ¶ added in v0.3.5
func (*ExistFilter) IsMatch ¶ added in v0.3.5
func (it *ExistFilter) IsMatch(path *Path) bool
func (*ExistFilter) IsMatchLazy ¶ added in v0.3.5
func (it *ExistFilter) IsMatchLazy(lazyPath *LazyPath) bool
type Filter ¶ added in v0.3.5
type Filter struct { NameFilter *ValueFilter `json:"NameFilter,omitempty"` PathFilter *ValueFilter `json:"PathFilter,omitempty"` ExistFilter *ExistFilter `json:"ExistFilter,omitempty"` NameRegexFilter string `json:"NameRegexFilter,omitempty"` PathRegexFilter string `json:"PathRegexFilter,omitempty"` }
func (*Filter) IsMatchLazy ¶ added in v0.3.5
type LazyPath ¶ added in v0.3.5
type LazyPath struct { Path *Path // contains filtered or unexported fields }
func NewLazyPath ¶ added in v0.3.5
func (*LazyPath) ErrorWrapper ¶ added in v0.3.5
func (it *LazyPath) ErrorWrapper() *errorwrapper.Wrapper
func (*LazyPath) HasFileInfo ¶ added in v0.3.5
func (*LazyPath) IsExistButDir ¶ added in v0.3.8
func (*LazyPath) IsExistButFile ¶ added in v0.3.8
func (*LazyPath) LocationInfo ¶ added in v0.3.5
func (it *LazyPath) LocationInfo() *pathhelper.LocationInfo
func (*LazyPath) PathExistStat ¶ added in v0.3.5
func (it *LazyPath) PathExistStat() *chmodhelper.PathExistStat
func (*LazyPath) SimpleStat ¶ added in v0.3.5
func (it *LazyPath) SimpleStat() *pathchmod.SimpleStat
type Path ¶
func NewPathDefault ¶ added in v0.3.7
func NewPathExpandNormalizeDefault ¶ added in v0.3.7
func (*Path) AllDirsSimpleStat ¶ added in v0.3.6
func (it *Path) AllDirsSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
func (*Path) AllFilesSimpleStat ¶ added in v0.3.6
func (it *Path) AllFilesSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
func (*Path) AllPaths ¶ added in v0.3.6
AllPaths returns all immediate paths but not nested or recursive paths.
func (*Path) AllPathsSimpleStat ¶ added in v0.3.6
func (it *Path) AllPathsSimpleStat() (*pathchmod.SimpleStats, *errorwrapper.Wrapper)
func (*Path) ApplyChown ¶
func (it *Path) ApplyChown( chown *pathinsfmt.Chown, ) *errorwrapper.Wrapper
func (*Path) ApplyFileMode ¶
func (it *Path) ApplyFileMode(mode os.FileMode) *errorwrapper.Wrapper
func (*Path) ApplyPathVerifier ¶
func (it *Path) ApplyPathVerifier( isSkipOnInvalid bool, errorCollection *errwrappers.Collection, pathVerifier *pathinsfmt.PathVerifier, ) (isSuccess bool)
func (*Path) ApplyPathVerifiers ¶
func (it *Path) ApplyPathVerifiers( errorCollection *errwrappers.Collection, pathVerifiers *pathinsfmt.PathVerifiers, ) (isSuccess bool)
func (*Path) ApplyRwxInstruction ¶
func (it *Path) ApplyRwxInstruction( rwx *chmodins.RwxInstruction, ) *errorwrapper.Wrapper
func (*Path) CheckSummer ¶ added in v0.3.5
func (*Path) ChmodCondition ¶
func (*Path) ClonePathUsingNew ¶
func (*Path) CombineWithElitePaths ¶ added in v0.3.5
func (*Path) CombineWithElitePathsToElitePath ¶ added in v0.3.5
func (*Path) CopyTo ¶ added in v0.3.5
func (it *Path) CopyTo( isClearBefore, isRecursive bool, toPath string, ) *errorwrapper.Wrapper
func (*Path) DeletePath ¶ added in v0.3.5
func (it *Path) DeletePath(isSkipOnNonExist bool) *errorwrapper.Wrapper
func (*Path) Directories ¶ added in v0.3.6
Directories it doesn't return recursive directories but just immediate nested directories
func (*Path) FileNameWithExt ¶ added in v0.3.5
func (*Path) FileNameWithoutExt ¶ added in v0.3.5
func (*Path) Files ¶ added in v0.3.6
Files it doesn't return recursive files but just immediate nested files
func (*Path) FixedPathAsSlice ¶
func (*Path) IsChecksumEqual ¶ added in v0.3.5
func (*Path) IsDotExtension ¶ added in v0.3.8
func (*Path) IsEqualWithoutOptions ¶ added in v0.3.5
func (*Path) IsExtension ¶ added in v0.3.8
func (*Path) IsFilterMatch ¶ added in v0.3.5
func (*Path) JoinsToPath ¶ added in v0.3.5
func (*Path) LocationInfo ¶
func (it *Path) LocationInfo() *pathhelper.LocationInfo
func (*Path) MoveTo ¶ added in v0.3.5
func (it *Path) MoveTo( isClearBefore, isRecursive bool, toPath string, ) *errorwrapper.Wrapper
func (*Path) NotDirError ¶ added in v0.3.6
func (it *Path) NotDirError() *errorwrapper.Wrapper
func (*Path) NotFileError ¶ added in v0.3.6
func (it *Path) NotFileError() *errorwrapper.Wrapper
func (*Path) OsFile ¶ added in v0.3.6
func (it *Path) OsFile( existingErrorWrapper *errorwrapper.Wrapper, osFlag int, fileMode os.FileMode, ) *fs.OsFile
OsFile use fs.Flag to use appropriate file flags
Must call fs.OsFile.AttachDeferCloseOnRequire()
func (*Path) ParentDirPath ¶ added in v0.3.6
func (*Path) PathExtWrapper ¶
func (*Path) PathLinuxStat ¶
func (it *Path) PathLinuxStat() *pathstatlinux.Info
func (*Path) PathWrapper ¶
func (it *Path) PathWrapper() pathwrapper.Wrapper
func (*Path) ReadFileBytes ¶
func (*Path) ReadFileBytesMust ¶ added in v0.3.6
func (*Path) ReadFileString ¶
func (*Path) ReadFileStringMust ¶ added in v0.3.6
func (*Path) ReadFileUnmarshal ¶
func (it *Path) ReadFileUnmarshal( unmarshallingObjectRef interface{}, ) *errorwrapper.Wrapper
func (*Path) ReadJsonParseSelfInjector ¶
func (it *Path) ReadJsonParseSelfInjector( injector corejson.JsonParseSelfInjector, ) *errorwrapper.Wrapper
func (*Path) ReadLinesMust ¶ added in v0.3.6
func (*Path) RecursiveDirPaths ¶ added in v0.3.5
func (it *Path) RecursiveDirPaths( isRelativePath bool, excludeRootNames ...string, ) *corestr.SimpleSlice
func (*Path) RecursiveFilePaths ¶ added in v0.3.5
func (it *Path) RecursiveFilePaths( isRelativePath bool, excludeRootNames ...string, ) *corestr.SimpleSlice
func (*Path) RecursivePathsAll ¶ added in v0.3.5
func (*Path) RwxWrapper ¶
func (it *Path) RwxWrapper() *pathchmod.RwxWrapperWithError
func (*Path) SimpleStat ¶
func (it *Path) SimpleStat() *pathchmod.SimpleStat
func (*Path) VerifyCheckSumTreeError ¶ added in v0.3.5
func (it *Path) VerifyCheckSumTreeError( isRecursive bool, hashMethod hashas.Variant, comparingPath string, ) *errwrappers.Collection
func (*Path) WriteLines ¶ added in v0.3.6
func (it *Path) WriteLines(lines []string) *errorwrapper.Wrapper
type PathCollection ¶ added in v0.3.5
type PathCollection struct {
Items []*Path `json:"Items,omitempty"`
}
func EmptyPathCollection ¶ added in v0.3.5
func EmptyPathCollection() *PathCollection
func NewPathCollection ¶ added in v0.3.5
func NewPathCollection( isSkipEmpty, isNormalize, isExpandEnvVars bool, overridingPathOptions *pathfixer.PathOptions, collection ...string, ) *PathCollection
func NewPathCollectionDirect ¶ added in v0.3.5
func NewPathCollectionDirect( options *pathfixer.PathOptions, collection ...string, ) *PathCollection
func NewPathCollectionUsingCapacity ¶ added in v0.3.5
func NewPathCollectionUsingCapacity(capacity int) *PathCollection
func (*PathCollection) Add ¶ added in v0.3.5
func (it *PathCollection) Add(path *Path) *PathCollection
func (*PathCollection) AddCollections ¶ added in v0.3.5
func (it *PathCollection) AddCollections( collections ...*PathCollection, ) *PathCollection
func (*PathCollection) AddDir ¶ added in v0.3.5
func (it *PathCollection) AddDir(path *Path) *PathCollection
func (*PathCollection) AddFile ¶ added in v0.3.5
func (it *PathCollection) AddFile( path *Path, ) *PathCollection
func (*PathCollection) AddFilterMatch ¶ added in v0.3.5
func (it *PathCollection) AddFilterMatch( filter *Filter, path *Path, ) *PathCollection
func (*PathCollection) AddIf ¶ added in v0.3.5
func (it *PathCollection) AddIf( isAdd bool, path *Path, ) *PathCollection
func (*PathCollection) AddValid ¶ added in v0.3.5
func (it *PathCollection) AddValid(path *Path) *PathCollection
func (*PathCollection) AddsFilterMatch ¶ added in v0.3.5
func (it *PathCollection) AddsFilterMatch( filter *Filter, paths ...*Path, ) *PathCollection
func (*PathCollection) AddsRaw ¶ added in v0.3.5
func (it *PathCollection) AddsRaw(paths ...string) *PathCollection
func (*PathCollection) AddsRawUsingOption ¶ added in v0.3.5
func (it *PathCollection) AddsRawUsingOption( options pathfixer.PathOptions, paths ...string, ) *PathCollection
func (*PathCollection) AddsRawValid ¶ added in v0.3.5
func (it *PathCollection) AddsRawValid(paths ...string) *PathCollection
func (*PathCollection) AllDirs ¶ added in v0.3.5
func (it *PathCollection) AllDirs() []string
func (*PathCollection) AllDirsPaths ¶ added in v0.3.5
func (it *PathCollection) AllDirsPaths() *PathCollection
func (*PathCollection) AllExistPaths ¶ added in v0.3.5
func (it *PathCollection) AllExistPaths() []string
func (*PathCollection) AllExistPathsCollection ¶ added in v0.3.5
func (it *PathCollection) AllExistPathsCollection() *PathCollection
func (*PathCollection) AllFiles ¶ added in v0.3.5
func (it *PathCollection) AllFiles() []string
func (*PathCollection) AllFilesPaths ¶ added in v0.3.5
func (it *PathCollection) AllFilesPaths() *PathCollection
func (*PathCollection) AsBasicSliceContractsBinder ¶ added in v0.3.5
func (it *PathCollection) AsBasicSliceContractsBinder() coreinterface.BasicSlicerContractsBinder
func (*PathCollection) AsJsonMarshaller ¶ added in v0.3.8
func (it *PathCollection) AsJsonMarshaller() corejson.JsonMarshaller
func (*PathCollection) AsJsonParseSelfInjector ¶ added in v0.3.8
func (it *PathCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector
func (*PathCollection) AsJsoner ¶ added in v0.3.8
func (it *PathCollection) AsJsoner() corejson.Jsoner
func (*PathCollection) ConcatNew ¶ added in v0.3.5
func (it *PathCollection) ConcatNew( collections ...*PathCollection, ) *PathCollection
func (*PathCollection) Count ¶ added in v0.3.5
func (it *PathCollection) Count() int
func (*PathCollection) ExecuteAll ¶ added in v0.3.7
func (it *PathCollection) ExecuteAll( isContinueOnError bool, errCollection *errwrappers.Collection, exeFunc func(path *Path) *errorwrapper.Wrapper, ) (isSuccess bool)
func (*PathCollection) Filter ¶ added in v0.3.5
func (it *PathCollection) Filter(filter *Filter) []string
func (*PathCollection) FilterPathCollection ¶ added in v0.3.5
func (it *PathCollection) FilterPathCollection(filter *Filter) *PathCollection
func (*PathCollection) First ¶ added in v0.3.5
func (it *PathCollection) First() *Path
func (*PathCollection) FirstDynamic ¶ added in v0.3.5
func (it *PathCollection) FirstDynamic() interface{}
func (*PathCollection) FirstOrDefault ¶ added in v0.3.5
func (it *PathCollection) FirstOrDefault() *Path
func (*PathCollection) FirstOrDefaultDynamic ¶ added in v0.3.5
func (it *PathCollection) FirstOrDefaultDynamic() interface{}
func (*PathCollection) HasAnyItem ¶ added in v0.3.5
func (it *PathCollection) HasAnyItem() bool
func (*PathCollection) HasIndex ¶ added in v0.3.5
func (it *PathCollection) HasIndex(index int) bool
func (*PathCollection) IsEmpty ¶ added in v0.3.5
func (it *PathCollection) IsEmpty() bool
func (*PathCollection) Json ¶ added in v0.3.8
func (it *PathCollection) Json() *corejson.Result
func (*PathCollection) JsonModel ¶ added in v0.3.8
func (it *PathCollection) JsonModel() *PathCollection
func (*PathCollection) JsonModelAny ¶ added in v0.3.8
func (it *PathCollection) JsonModelAny() interface{}
func (*PathCollection) JsonParseSelfInject ¶ added in v0.3.8
func (it *PathCollection) JsonParseSelfInject( jsonResult *corejson.Result, ) error
func (*PathCollection) Last ¶ added in v0.3.5
func (it *PathCollection) Last() *Path
func (*PathCollection) LastDynamic ¶ added in v0.3.5
func (it *PathCollection) LastDynamic() interface{}
func (*PathCollection) LastIndex ¶ added in v0.3.5
func (it *PathCollection) LastIndex() int
func (*PathCollection) LastOrDefault ¶ added in v0.3.5
func (it *PathCollection) LastOrDefault() interface{}
func (*PathCollection) LastOrDefaultDynamic ¶ added in v0.3.5
func (it *PathCollection) LastOrDefaultDynamic() interface{}
func (*PathCollection) Length ¶ added in v0.3.5
func (it *PathCollection) Length() int
func (*PathCollection) Limit ¶ added in v0.3.5
func (it *PathCollection) Limit(limit int) *PathCollection
func (*PathCollection) LimitDynamic ¶ added in v0.3.5
func (it *PathCollection) LimitDynamic(limit int) interface{}
func (*PathCollection) MarshalJSON ¶ added in v0.3.8
func (it *PathCollection) MarshalJSON() ([]byte, error)
func (*PathCollection) ParseInjectUsingJson ¶ added in v0.3.8
func (it *PathCollection) ParseInjectUsingJson( jsonResult *corejson.Result, ) (*PathCollection, error)
func (*PathCollection) ParseInjectUsingJsonMust ¶ added in v0.3.8
func (it *PathCollection) ParseInjectUsingJsonMust( jsonResult *corejson.Result, ) *PathCollection
ParseInjectUsingJsonMust Panic if error
func (*PathCollection) PathMatchesWithRegex ¶ added in v0.3.5
func (it *PathCollection) PathMatchesWithRegex(regexp *regexp.Regexp) []string
func (*PathCollection) ReadFromFile ¶ added in v0.3.8
func (it *PathCollection) ReadFromFile( filePath string, ) *errorwrapper.Wrapper
func (*PathCollection) SaveToFile ¶ added in v0.3.8
func (it *PathCollection) SaveToFile( filePath string, ) *errorwrapper.Wrapper
func (*PathCollection) Skip ¶ added in v0.3.5
func (it *PathCollection) Skip(skippingItemsCount int) *PathCollection
func (*PathCollection) SkipDynamic ¶ added in v0.3.5
func (it *PathCollection) SkipDynamic(skippingItemsCount int) interface{}
func (*PathCollection) String ¶ added in v0.3.5
func (it *PathCollection) String() string
func (*PathCollection) Strings ¶ added in v0.3.5
func (it *PathCollection) Strings() []string
func (*PathCollection) Take ¶ added in v0.3.5
func (it *PathCollection) Take(takeDynamicItems int) *PathCollection
func (*PathCollection) TakeDynamic ¶ added in v0.3.5
func (it *PathCollection) TakeDynamic(takeDynamicItems int) interface{}
func (*PathCollection) UnmarshalJSON ¶ added in v0.3.8
func (it *PathCollection) UnmarshalJSON( data []byte, ) error
type ValueFilter ¶ added in v0.3.5
type ValueFilter struct { Value string IsCaseSensitive bool Compare stringcompareas.Variant }
func (*ValueFilter) IsIgnoreCase ¶ added in v0.3.7
func (it *ValueFilter) IsIgnoreCase() bool
func (*ValueFilter) IsMatch ¶ added in v0.3.5
func (it *ValueFilter) IsMatch(content string) bool
type WithPermission ¶ added in v0.3.5
type WithPermission struct { Path BasePathPermission PathVerifiers *pathinsfmt.PathVerifiers `json:"PathVerifiers,omitempty"` PathVerifier *pathinsfmt.PathVerifier `json:"PathVerifier,omitempty"` }
func NewWithPermissionPtr ¶ added in v0.3.5
func NewWithPermissionPtr( isNormalize, isExpandEnvVars bool, location string, ) *WithPermission
func NewWithPermissionRwxChown ¶ added in v0.3.5
func NewWithPermissionRwxChown( isNormalize, isExpandEnvVars bool, rwx *chmodins.RwxInstruction, chown *pathinsfmt.Chown, location string, ) WithPermission
func NewWithPermissionRwxChownPtr ¶ added in v0.3.5
func NewWithPermissionRwxChownPtr( isNormalize, isExpandEnvVars bool, rwx *chmodins.RwxInstruction, chown *pathinsfmt.Chown, location string, ) *WithPermission
func (*WithPermission) Apply ¶ added in v0.3.5
func (it *WithPermission) Apply( isSkipOnInvalid bool, ) *errwrappers.Collection
func (*WithPermission) ApplyChown ¶ added in v0.3.5
func (it *WithPermission) ApplyChown() *errorwrapper.Wrapper
func (*WithPermission) ApplyPathVerifier ¶ added in v0.3.5
func (it *WithPermission) ApplyPathVerifier( isSkipOnInvalid bool, errorCollection *errwrappers.Collection, ) (isSuccess bool)
func (*WithPermission) ApplyPathVerifiers ¶ added in v0.3.5
func (it *WithPermission) ApplyPathVerifiers( errorCollection *errwrappers.Collection, ) (isSuccess bool)
func (*WithPermission) ApplyRwx ¶ added in v0.3.5
func (it *WithPermission) ApplyRwx() *errorwrapper.Wrapper
func (*WithPermission) ApplyUsingErrorCollection ¶ added in v0.3.5
func (it *WithPermission) ApplyUsingErrorCollection( isSkipOnInvalid bool, errorCollection *errwrappers.Collection, ) (isSuccess bool)
Click to show internal directories.
Click to hide internal directories.