Versions in this module Expand all Collapse all v1 v1.1.0 Jun 30, 2020 v1.0.0 Oct 25, 2019 Changes in this version + type AddonClient interface + Cleanup func() error + GetCompleteAddon func(entry internal.IndexEntry) (internal.AddonWithCharts, error) + GetIndex func() (*internal.Index, error) + type Client struct + func NewClient(concreteGetter RepositoryGetter, addonLoader addonLoader, ...) (*Client, error) + func (d *Client) Cleanup() error + func (d *Client) GetCompleteAddon(entry internal.IndexEntry) (internal.AddonWithCharts, error) + func (d *Client) GetIndex() (*internal.Index, error) + type ClientFactory struct + func NewClientFactory(allowedGetters map[string]Provider, addonLoader addonLoader, ...) (*ClientFactory, error) + func (cli *ClientFactory) NewGetter(rawURL, instPath string) (AddonClient, error) + type ClientModeDirGetter struct + func (g *ClientModeDirGetter) AddonDocURL(name internal.AddonName, version internal.AddonVersion) (string, error) + func (g *ClientModeDirGetter) AddonLoadInfo(name internal.AddonName, version internal.AddonVersion) (LoadType, string, error) + func (g *ClientModeDirGetter) Cleanup() error + func (g *ClientModeDirGetter) IndexReader() (io.ReadCloser, error) + type ClientModeDirGetterCfg struct + Addr string + Cli assetstore.Client + Protocol string + Src string + TmpDir string + Underlying getter.Getter + type GitGetterCreator struct + Cli assetstore.Client + TmpDir string + func (g GitGetterCreator) NewGit(addr, src string) (RepositoryGetter, error) + type HTTPGetter struct + func (h *HTTPGetter) AddonDocURL(name internal.AddonName, version internal.AddonVersion) (string, error) + func (h *HTTPGetter) AddonLoadInfo(name internal.AddonName, version internal.AddonVersion) (LoadType, string, error) + func (h *HTTPGetter) Cleanup() error + func (h *HTTPGetter) IndexReader() (io.ReadCloser, error) + type HgGetterCreator struct + Cli assetstore.Client + TmpDir string + func (g HgGetterCreator) NewHg(addr, src string) (RepositoryGetter, error) + type LoadType int + const ArchiveLoadType + const DirectoryLoadType + const UnknownLoadType + type Provider func(idxAddr, dstPath string) (RepositoryGetter, error) + type RepositoryGetter interface + AddonDocURL func(name internal.AddonName, version internal.AddonVersion) (string, error) + AddonLoadInfo func(name internal.AddonName, version internal.AddonVersion) (LoadType, string, error) + Cleanup func() error + IndexReader func() (io.ReadCloser, error) + func NewClientModeDirGetter(in ClientModeDirGetterCfg) (RepositoryGetter, error) + func NewHTTP(idxAddr, dst string) (RepositoryGetter, error) + type S3GetterCreator struct + Cli assetstore.Client + TmpDir string + func (g S3GetterCreator) NewS3(addr, src string) (RepositoryGetter, error)