goproxy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchemeAndHost

func GetSchemeAndHost(goproxy string) (scheme, host string, err error)

GetSchemeAndHost detects and returns the scheme and host for goproxy requests. It returns empty strings if goproxy is disabled via `off` or `direct` values.

Types

type Client

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

Client is a client to query versions from a goproxy instance.

func NewClient

func NewClient(scheme, host string) *Client

NewClient returns a new goproxyClient instance.

func (*Client) GetVersions

func (g *Client) GetVersions(ctx context.Context, gomodulePath string) (semver.Versions, error)

GetVersions returns the a sorted list of semantical versions which exist for a go module.

Jump to

Keyboard shortcuts

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