fetchclient

package
v0.0.0-...-8e6fd2e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient() *http.Client

NewHTTPClient returns an HTTP client which retries transient failures.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client used to fetch package versions.

func New

func New() *Client

New returns a new client.

func (*Client) FetchVersions

func (c *Client) FetchVersions(ctx context.Context, src *source.Source) ([]string, error)

FetchVersions returns every stable version published by the source's upstream. Each version is valid semver with a "v" prefix. Prereleases and versions that are not valid semver are omitted.

Jump to

Keyboard shortcuts

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