resolver

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalPath

func GetLocalPath(repo, chartpath string) (string, error)

GetLocalPath generates absolute local path when use "file://" in repository of dependencies

func HashReq

func HashReq(req, lock []*chart.Dependency) (string, error)

HashReq generates a hash of the dependencies.

This should be used only to compare against another hash generated by this function.

func HashV2Req

func HashV2Req(req []*chart.Dependency) (string, error)

HashV2Req generates a hash of requirements generated in Helm v2.

This should be used only to compare against another hash generated by the Helm v2 hash function. It is to handle issue: https://github.com/helm/helm/issues/7233

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver resolves dependencies from semantic version ranges to a particular version.

func New

func New(chartpath, cachepath string, registryClient *registry.Client) *Resolver

New creates a new resolver for a given chart, helm home and registry client.

func (*Resolver) Resolve

func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string, opts helmopts.HelmOptions) (*chart.Lock, error)

Resolve resolves dependencies and returns a lock file with the resolution.

Jump to

Keyboard shortcuts

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