helm

package
v2.2.9-ent2-rc2+incomp... Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

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 CatalogSHA256Hash(catalog *v3.Catalog) string

func GetCatalog

func GetCatalog(
	catalogType, namespace, catalogName string,
	catalogLister v3.CatalogLister,
	clusterCatalogLister v3.ClusterCatalogLister,
	projectCatalogLister v3.ProjectCatalogLister,
) (*v3.Catalog, error)

func SplitNamespaceAndName

func SplitNamespaceAndName(id string) (string, string)

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 New

func New(catalog *v3.Catalog) (*Helm, error)

func NewForceUpdate

func NewForceUpdate(catalog *v3.Catalog) (string, *Helm, error)

func NewNoUpdate

func NewNoUpdate(catalog *v3.Catalog) (*Helm, error)

func (*Helm) FetchLocalFiles

func (h *Helm) FetchLocalFiles(version *ChartVersion) ([]v3.File, error)

func (*Helm) Icon

func (h *Helm) Icon(versions ChartVersions) (string, string, error)

func (*Helm) LoadChart

func (h *Helm) LoadChart(templateVersion *v3.TemplateVersionSpec, filters []string) (map[string]string, error)

func (*Helm) LoadIcon

func (h *Helm) LoadIcon(cacheFile, iconURL string) ([]byte, error)

func (*Helm) LoadIndex

func (h *Helm) LoadIndex() (*RepoIndex, error)

func (*Helm) Update

func (h *Helm) Update(fetchLatest bool) (string, error)

type IndexFile

type IndexFile struct {
	Entries map[string]ChartVersions `json:"entries" yaml:"entries"`
}

type RepoIndex

type RepoIndex struct {
	IndexFile *IndexFile `json:"indexFile" yaml:"indexFile"`
	Hash      string     `json:"hash" yaml:"hash"`
}

Jump to

Keyboard shortcuts

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