gomodproxy

package
v0.0.0-...-0effba1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package gomodproxy simplifies fetching data from a Go module proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, modName, version, dir string) error

Download fetches a Go module using the proxy.golang.org Go module proxy API.

func Latest

func Latest(ctx context.Context, modName string) (latest string, err error)

Latest returns the latest version of a Go module, using the proxy.golang.org Go module proxy API.

Types

type GoChecksumDatabaseClient

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

func NewGoChecksumDatabaseClient

func NewGoChecksumDatabaseClient() *GoChecksumDatabaseClient

func (*GoChecksumDatabaseClient) Log

func (c *GoChecksumDatabaseClient) Log(msg string)

func (*GoChecksumDatabaseClient) ReadCache

func (c *GoChecksumDatabaseClient) ReadCache(file string) ([]byte, error)

func (*GoChecksumDatabaseClient) ReadConfig

func (c *GoChecksumDatabaseClient) ReadConfig(file string) ([]byte, error)

func (*GoChecksumDatabaseClient) ReadRemote

func (c *GoChecksumDatabaseClient) ReadRemote(path string) ([]byte, error)

func (*GoChecksumDatabaseClient) SecurityError

func (c *GoChecksumDatabaseClient) SecurityError(msg string)

func (*GoChecksumDatabaseClient) WriteCache

func (c *GoChecksumDatabaseClient) WriteCache(file string, data []byte)

func (*GoChecksumDatabaseClient) WriteConfig

func (c *GoChecksumDatabaseClient) WriteConfig(file string, old, new []byte) error

Jump to

Keyboard shortcuts

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