Documentation ¶
Index ¶
- func CheckPreReleaseConstraint(constraint *semver.Constraints, version *semver.Version) bool
- func GetArtifactName(artifact string) string
- func GetValuesFromChart[T PathNavigator](chart, version string, pathNavigator T) ([]string, error)
- func ListTags(ctx context.Context, repository string) ([]string, error)
- func RemoveDomainAndOrg(src string) string
- func TagExists(tags []string, version string) bool
- type ListTagsFunc
- type LoaderFunc
- type PathNavigator
- type PullFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPreReleaseConstraint ¶
func CheckPreReleaseConstraint(constraint *semver.Constraints, version *semver.Version) bool
CheckPreReleaseConstraint checks whether a given version, stripped of its pre-release suffix
func GetArtifactName ¶
GetArtifactName extracts the artifact name from the chart reference and replaces ':' with '-'
func GetValuesFromChart ¶
func GetValuesFromChart[T PathNavigator](chart, version string, pathNavigator T) ([]string, error)
GetValuesFromChart fetches the supported versions from a Helm chart specified by the chart and version parameters.
func RemoveDomainAndOrg ¶
RemoveDomainAndOrg removes the domain and organization from the repository URL
Types ¶
type ListTagsFunc ¶
ListTagsFunc is a type for the ListTags function
var DefaultListTags ListTagsFunc = crane.ListTags
DefaultListTags is the default implementation of ListTagsFunc
type LoaderFunc ¶
LoaderFunc is a function type for loading charts
type PathNavigator ¶
type PathNavigator interface {
} Click to show internal directories.
Click to hide internal directories.