goproxy

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package goproxy implements a goproxy client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchemeAndHost

func GetSchemeAndHost(goproxy string) (string, string, 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.

Directories

Path Synopsis
Package test contains test util functions for goproxy.
Package test contains test util functions for goproxy.

Jump to

Keyboard shortcuts

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