Documentation
¶
Overview ¶
Package retriever gets release/asset information from upstreams
Index ¶
- type ResourceFetcher
- func (r *ResourceFetcher) Debug(cat logging.Category, msg string, args ...any)
- func (r *ResourceFetcher) Download(dryrun bool, url, dest string) (bool, error)
- func (r *ResourceFetcher) ExecuteCommand(cmd string, args ...string) (string, error)
- func (r ResourceFetcher) Get(url string) (*http.Response, error)
- func (r *ResourceFetcher) GitHubFetch(ownerRepo, call string, to any) error
- func (r *ResourceFetcher) Process(ctx fetch.Context, sources iter.Seq[any]) (*core.Resource, error)
- func (r *ResourceFetcher) SetConnections(conn core.Connections)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceFetcher ¶
type ResourceFetcher struct { Context cli.Settings Backend fetch.Backend Connections core.Connections // contains filtered or unexported fields }
ResourceFetcher is the default fetcher for resources
func (*ResourceFetcher) Debug ¶
func (r *ResourceFetcher) Debug(cat logging.Category, msg string, args ...any)
Debug prints a debug message
func (*ResourceFetcher) Download ¶
func (r *ResourceFetcher) Download(dryrun bool, url, dest string) (bool, error)
Download will download an asset
func (*ResourceFetcher) ExecuteCommand ¶
func (r *ResourceFetcher) ExecuteCommand(cmd string, args ...string) (string, error)
ExecuteCommand executes an executable and args
func (ResourceFetcher) Get ¶ added in v0.5.5
func (r ResourceFetcher) Get(url string) (*http.Response, error)
Get performs a simple URL 'GET'
func (*ResourceFetcher) GitHubFetch ¶
func (r *ResourceFetcher) GitHubFetch(ownerRepo, call string, to any) error
GitHubFetch performs a github fetch operations
func (*ResourceFetcher) Process ¶
Process will determine the appropriate backend for processing a fetch
func (*ResourceFetcher) SetConnections ¶ added in v0.1.7
func (r *ResourceFetcher) SetConnections(conn core.Connections)
SetConnections will configure connection information for the fetcher
Click to show internal directories.
Click to hide internal directories.