Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultRemoteFetcher(url string) ([]byte, error)
- func NewFilesystemCache(dir string, limit int) (*fsCache, error)
- type Cache
- type CacheFactory
- type Catalog
- type ChartFetcher
- type ChartVersionResolver
- type RemoteFetcher
- type Repo
- func (r *Repo) Fetch(chartspec *shipper.Chart) (*chart.Chart, error)
- func (r *Repo) FetchChartVersions(chartspec *shipper.Chart) (repo.ChartVersions, error)
- func (r *Repo) FetchRemote(cv *repo.ChartVersion) (*chart.Chart, error)
- func (r *Repo) LoadCached(cv *repo.ChartVersion) (*chart.Chart, error)
- func (r *Repo) ResolveVersion(chartspec *shipper.Chart) (*repo.ChartVersion, error)
- func (r *Repo) Start(stopCh <-chan struct{})
Constants ¶
View Source
const ( RepoIndexRefreshPeriod = 10 * time.Second RepoFetchIndexTimeout = 2 * time.Second )
Variables ¶
View Source
var ErrFetchNoResponseYet = errors.New("no response from chart repo yet")
Functions ¶
func DefaultRemoteFetcher ¶
func NewFilesystemCache ¶
Types ¶
type CacheFactory ¶
func DefaultFileCacheFactory ¶
func DefaultFileCacheFactory(cacheDir string) CacheFactory
type Catalog ¶
func NewCatalog ¶
func NewCatalog(factory CacheFactory, fetcher RemoteFetcher, stopCh <-chan struct{}) *Catalog
type ChartFetcher ¶
func FetchChartFunc ¶
func FetchChartFunc(c *Catalog) ChartFetcher
type ChartVersionResolver ¶
type ChartVersionResolver func(*shipper.Chart) (*repo.ChartVersion, error)
func ResolveChartVersionFunc ¶
func ResolveChartVersionFunc(c *Catalog) ChartVersionResolver
type RemoteFetcher ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) FetchChartVersions ¶
func (*Repo) FetchRemote ¶
func (*Repo) LoadCached ¶
func (*Repo) ResolveVersion ¶
Click to show internal directories.
Click to hide internal directories.