retriever

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package retriever gets release/asset information from upstreams

Index

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

func (r *ResourceFetcher) Process(ctx fetch.Context, sources iter.Seq[any]) (*core.Resource, error)

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

Jump to

Keyboard shortcuts

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