helm

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartVersion added in v1.3.0

func GetChartVersion(chartVersion *repo.ChartVersion) string
func IsSymlink(fi os.FileInfo) bool

IsSymlink is used to determine if the fileinfo is a symbolic link.

func JoinHTTPPaths added in v1.4.0

func JoinHTTPPaths(baseURL, paths string) string

func LoadDir added in v1.9.0

func LoadDir(dir string, accept func(name string, fi os.FileInfo) bool) (*chart.Chart, error)

func LoadHelmChartVersion

func LoadHelmChartVersion(r io.Reader) (*repo.ChartVersion, error)

func LoadHelmChartVersionFile

func LoadHelmChartVersionFile(root *os.Root, filename string) (*repo.ChartVersion, error)

func LoadHelmChartVersionFilename added in v1.8.0

func LoadHelmChartVersionFilename(filename string) (*repo.ChartVersion, error)

func MapSortedByKey added in v1.10.0

func MapSortedByKey[Map ~map[K]V, K cmp.Ordered, V any](m Map) iter.Seq2[K, V]

MapSortedByKey returns an iterator for the given map that yields the key-value pairs in sorted order.

Types

type Chart

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

func LoadChart

func LoadChart(repository *Repository, chart *repo.ChartVersion) (*Chart, error)

func (*Chart) Chart

func (c *Chart) Chart() *repo.ChartVersion

func (*Chart) Download

func (c *Chart) Download(options ...ChartDownloadOption) (*ChartFiles, error)

type ChartDownloadOption

type ChartDownloadOption func(*chartDownloadOptions)

func WithChartDownloadPath

func WithChartDownloadPath(path string) ChartDownloadOption

type ChartFiles

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

func (*ChartFiles) Close

func (c *ChartFiles) Close() error

func (*ChartFiles) Iter

func (c *ChartFiles) Iter() file.Iter

func (*ChartFiles) Root

func (c *ChartFiles) Root() *os.Root

type Repository

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

func LoadRepository

func LoadRepository(repoURL string) (*Repository, error)

func (*Repository) ChartVersions

func (r *Repository) ChartVersions(name string, maxAmount int) iter.Seq2[*repo.ChartVersion, error]

func (*Repository) Close

func (r *Repository) Close() error

func (*Repository) FindChartVersion added in v1.4.0

func (r *Repository) FindChartVersion(name string, version string) (*repo.ChartVersion, error)

func (*Repository) GetChart

func (r *Repository) GetChart(name, version string) (*Chart, error)

func (*Repository) ResolveReferenceURL

func (r *Repository) ResolveReferenceURL(url string) (string, error)

Jump to

Keyboard shortcuts

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