Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestChartVersion ¶
func GetLatestChartVersion( ctx context.Context, registryURL string, chart string, semverConstraint string, creds *Credentials, ) (string, error)
GetLatestChartVersion connects to the Helm chart registry specified by registryURL and retrieves all available versions of the chart found therein. The registry can be either a classic chart registry (using HTTP/S) or an OCI registry. If no semverConstraint is provided (empty string is passed), then the version that is semantically greatest will be returned. If a semverConstraint is specified, then the semantically greatest version satisfying that constraint will be returned. If no version satisfies the constraint, the empty string is returned. Provided credentials may be nil for public registries, but must be non-nil for private registries.
func UpdateChartDependencies ¶
Types ¶
type Credentials ¶
type Credentials struct { // Username identifies a principal, which combined with the value of the // Password field, can be used for reading from some remote registry. Username string // Password, when combined with the principal identified by the Username // field, can be used for both reading from some remote registry. Password string }
Credentials represents the credentials for connecting to a private Helm chart repository.