Documentation
¶
Index ¶
- func GetChartVersion(chartVersion *repo.ChartVersion) string
- func IsSymlink(fi os.FileInfo) bool
- func JoinHTTPPaths(baseURL, paths string) string
- func LoadDir(dir string, accept func(name string, fi os.FileInfo) bool) (*chart.Chart, error)
- func LoadHelmChartVersion(r io.Reader) (*repo.ChartVersion, error)
- func LoadHelmChartVersionFile(root *os.Root, filename string) (*repo.ChartVersion, error)
- func LoadHelmChartVersionFilename(filename string) (*repo.ChartVersion, error)
- func MapSortedByKey[Map ~map[K]V, K cmp.Ordered, V any](m Map) iter.Seq2[K, V]
- type Chart
- type ChartDownloadOption
- type ChartFiles
- type Repository
- func (r *Repository) ChartVersions(name string, maxAmount int) iter.Seq2[*repo.ChartVersion, error]
- func (r *Repository) Close() error
- func (r *Repository) FindChartVersion(name string, version string) (*repo.ChartVersion, error)
- func (r *Repository) GetChart(name, version string) (*Chart, error)
- func (r *Repository) ResolveReferenceURL(url string) (string, error)
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 JoinHTTPPaths ¶ added in v1.4.0
func LoadHelmChartVersion ¶
func LoadHelmChartVersion(r io.Reader) (*repo.ChartVersion, error)
func LoadHelmChartVersionFilename ¶ added in v1.8.0
func LoadHelmChartVersionFilename(filename string) (*repo.ChartVersion, error)
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) ResolveReferenceURL ¶
func (r *Repository) ResolveReferenceURL(url string) (string, error)
Click to show internal directories.
Click to hide internal directories.