Documentation
¶
Index ¶
- Variables
- func CatalogSHA256Hash(catalog *v3.Catalog) string
- func GetCatalog(catalogType, namespace, catalogName string, catalogLister v3.CatalogLister, ...) (*v3.Catalog, error)
- func SplitNamespaceAndName(id string) (string, string)
- type ChartMetadata
- type ChartVersion
- type ChartVersions
- type Helm
- func (h *Helm) FetchLocalFiles(version *ChartVersion) ([]v3.File, error)
- func (h *Helm) Icon(versions ChartVersions) (string, string, error)
- func (h *Helm) LoadChart(templateVersion *v3.TemplateVersionSpec, filters []string) (map[string]string, error)
- func (h *Helm) LoadIcon(cacheFile, iconURL string) ([]byte, error)
- func (h *Helm) LoadIndex() (*RepoIndex, error)
- func (h *Helm) Update(fetchLatest bool) (string, error)
- type IndexFile
- type RepoIndex
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Locker = locker.New() CatalogCache = filepath.Join("management-state", "catalog-cache") IconCache = filepath.Join(CatalogCache, ".icon-cache") )
Functions ¶
func CatalogSHA256Hash ¶
func GetCatalog ¶
func GetCatalog( catalogType, namespace, catalogName string, catalogLister v3.CatalogLister, clusterCatalogLister v3.ClusterCatalogLister, projectCatalogLister v3.ProjectCatalogLister, ) (*v3.Catalog, error)
func SplitNamespaceAndName ¶
Types ¶
type ChartMetadata ¶
type ChartMetadata struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Sources []string `json:"sources,omitempty" yaml:"sources,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
KubeVersion string `json:"kubeVersion,omitempty" yaml:"kubeVersion,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Keywords []string `json:"keywords,omitempty" yaml:"keywords,omitempty"`
Icon string `json:"icon,omitempty" yaml:"icon,omitempty"`
}
type ChartVersion ¶
type ChartVersion struct {
ChartMetadata `yaml:",inline"`
Dir string `json:"-" yaml:"-"`
LocalFiles []string `json:"-" yaml:"-"`
URLs []string `json:"urls" yaml:"urls"`
Digest string `json:"digest,omitempty" yaml:"digest,omitempty"`
}
type ChartVersions ¶
type ChartVersions []*ChartVersion
type Helm ¶
type Helm struct {
LocalPath string
IconPath string
Hash string
Kind string
// contains filtered or unexported fields
}
func (*Helm) FetchLocalFiles ¶
func (h *Helm) FetchLocalFiles(version *ChartVersion) ([]v3.File, error)
type IndexFile ¶
type IndexFile struct {
Entries map[string]ChartVersions `json:"entries" yaml:"entries"`
}
Click to show internal directories.
Click to hide internal directories.