Versions in this module Expand all Collapse all v0 v0.1.0 Sep 12, 2023 Changes in this version + var ErrUnsupportedProtocol = errors.New("unsupported protocol") + type Downloader interface + Download func(ctx context.Context, target string, src *url.URL) error + type FileDownloader struct + func (f FileDownloader) Download(_ context.Context, target string, src *url.URL) error + type GenericDownloader map[string]Downloader + func (g GenericDownloader) Download(ctx context.Context, target string, src *url.URL) error + type HTTPDownloader struct + Client *http.Client + func (h HTTPDownloader) Download(ctx context.Context, target string, src *url.URL) (err error) + type Manager struct + Downloader Downloader + func (p *Manager) Init(plugins state.Plugins, cacheDir string) + func (p *Manager) Register(ctx context.Context, registry *modules.TypeRegistry) error + func (p *Manager) UpdatePlugins(ctx context.Context, refs ...config.PluginReference) error