func GetLocalPath(repo, chartpath string) (string, error)
GetLocalPath generates absolute local path when use "file://" in repository of dependencies
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(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
Resolver resolves dependencies from semantic version ranges to a particular version.
type Resolver struct {
// contains filtered or unexported fields
}
func New(chartpath, cachepath string, registryClient *registry.Client) *Resolver
New creates a new resolver for a given chart, helm home and registry client.
func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string) (*chart.Lock, error)
Resolve resolves dependencies and returns a lock file with the resolution.