Documentation ¶
Index ¶
- func CreateSymlinkFileDetails() (*fileutils.FileDetails, error)
- func GetFileSymlinkPath(filePath string) (string, error)
- func GetPaths(rootPath string, isRecursive, includeDirs, isSymlink bool) ([]string, error)
- func GetRootPath(pattern, target string, isRegexp, preserveSymLink bool) (string, error)
- func GetSingleFileToUpload(rootPath, targetPath string, flat, preserveSymLink bool) (utils.Artifact, error)
- func IsPathExcluded(path string, excludePathPattern string) (excludedPath bool, err error)
- func PrepareAndFilterPaths(path, excludePathPattern string, preserveSymlinks, includeDirs bool, ...) (matches []string, isDir, isSymlinkFlow bool, err error)
- func PrepareExcludePathPattern(params serviceutils.FileGetter) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSymlinkFileDetails ¶
func CreateSymlinkFileDetails() (*fileutils.FileDetails, error)
When handling symlink we want to simulate the creation of empty file
func GetFileSymlinkPath ¶
If filePath is path to a symlink we should return the link content e.g where the link points
func GetRootPath ¶
Get the local root path, from which to start collecting artifacts to be uploaded to Artifactory. If path dose not exist error will be returned.
func GetSingleFileToUpload ¶
func IsPathExcluded ¶
func PrepareAndFilterPaths ¶
func PrepareAndFilterPaths(path, excludePathPattern string, preserveSymlinks, includeDirs bool, regexp *regexp.Regexp) (matches []string, isDir, isSymlinkFlow bool, err error)
Return only subpaths of the provided by the user path that matched to the provided regexp. Subpaths that matched to an exclude pattern won't returned
func PrepareExcludePathPattern ¶
func PrepareExcludePathPattern(params serviceutils.FileGetter) string
Transform to regexp and prepare Exclude patterns to be used
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.