Documentation
¶
Index ¶
- func FilterFilesByPatterns(files []types.File, includePatterns, excludePatterns []string) []types.File
- func FilterFilesByPatternsPackageName(packages []types.Package, includePatterns, excludePatterns []string) []types.Package
- func GenOCIImagePath(host string, pathParams ...string) string
- func GetPyPIVersion(filename string) string
- func GetRegistryRef(account string, ref string, registry string) string
- func GetSkipPrinter() *pterm.PrefixPrinter
- func IsFileLevelFilterableArtifact(artifactType types.ArtifactType) bool
- func IsPackageLevelFilterableArtifact(artifactType types.ArtifactType) bool
- func IsWildCardExpression(pattern string) (bool, error)
- func MatchesPattern(filePath string, patterns []string) bool
- func MatchesWildCardPattern(packageName string, pattern string) bool
- func ParseNugetFileNameWithPath(filePath string) (string, string, bool)
- func ParseNugetFileNameWithPath_old(filePath string) (string, string, bool)
- func ParsePuppetFileNameWithPath(filePath string) (string, string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterFilesByPatterns ¶ added in v1.3.3
func FilterFilesByPatternsPackageName ¶ added in v1.3.3
func FilterFilesByPatternsPackageName(packages []types.Package, includePatterns, excludePatterns []string) []types.Package
This is to filter based on package name
func GenOCIImagePath ¶
func GetPyPIVersion ¶
func GetSkipPrinter ¶
func GetSkipPrinter() *pterm.PrefixPrinter
func IsFileLevelFilterableArtifact ¶ added in v1.3.3
func IsFileLevelFilterableArtifact(artifactType types.ArtifactType) bool
func IsPackageLevelFilterableArtifact ¶ added in v1.3.3
func IsPackageLevelFilterableArtifact(artifactType types.ArtifactType) bool
func IsWildCardExpression ¶ added in v1.3.18
func MatchesPattern ¶ added in v1.3.3
func MatchesWildCardPattern ¶ added in v1.3.18
support * and ?
func ParseNugetFileNameWithPath ¶ added in v1.3.15
This will parse Nuget file with filePath like /package.version.nupkg or file name package.version.nupkg and return package , version and success , traversing from right side fo file name
func ParseNugetFileNameWithPath_old ¶ added in v1.3.15
This will parse Nuget file with filePath like /package.version.nupkg or file name package.version.nupkg and return package , version and success . this isplit logic using dot
func ParsePuppetFileNameWithPath ¶ added in v1.3.20
ParsePuppetFileNameWithPath parses a Puppet module tarball filename of the form "<author>-<module>-<version>.tar.gz" and returns the module name ("<author>-<module>") plus version. Module names contain a single hyphen and versions are valid SemVer 2.0.0 strings, so the version is found by scanning hyphen positions left-to-right and accepting the first split where both sides match their respective patterns.
Types ¶
This section is empty.