Documentation ¶
Index ¶
Constants ¶
View Source
const AhTextSearchQueryFieldName = "ts_query_web"
View Source
const ArtifactHubAPIEndpint = "https://artifacthub.io/api/v1"
View Source
const ArtifactHubChartUrlFieldName = "content_url"
Variables ¶
View Source
var ( ErrGetChartUrlCode = "11092" ErrGetAhPackageCode = "1093" ErrComponentGenerateCode = "11094" )
View Source
var AhApiSearchParams = map[string]string{
"offset": "0",
"limit": "10",
"facets": "false",
"kind": "0",
"sort": "relevance",
}
View Source
var RankingParameterWeightage = map[string]int{
"official": 5,
"verifiedPublisher": 10,
}
Functions ¶
func ErrComponentGenerate ¶
func ErrGetAhPackage ¶
func ErrGetChartUrl ¶
Types ¶
type AhPackage ¶
type AhPackage struct { Name string Repository string Organization string Url string Official bool VerifiedPublisher bool Version string }
internal representation of artifacthub package it contains information we need to identify a package using ArtifactHub API
func FilterPackagesWithCrds ¶
func GetAhPackagesWithName ¶
func SortPackagesWithScore ¶
func (AhPackage) GenerateComponents ¶
func (*AhPackage) UpdatePackageData ¶
function that will take the AhPackage as input and give the helm chart url for that package
Click to show internal directories.
Click to hide internal directories.