util

package
v1.3.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFilesByPatterns added in v1.3.3

func FilterFilesByPatterns(files []types.File, includePatterns, excludePatterns []string) []types.File

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 GenOCIImagePath(host string, pathParams ...string) string

func GetPyPIVersion

func GetPyPIVersion(filename string) string

func GetRegistryRef

func GetRegistryRef(account string, ref string, registry string) string

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 MatchesPattern added in v1.3.3

func MatchesPattern(filePath string, patterns []string) bool

func ParseNugetFileNameWithPath added in v1.3.15

func ParseNugetFileNameWithPath(filePath string) (string, string, bool)

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

func ParseNugetFileNameWithPath_old(filePath string) (string, string, bool)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL