Documentation ¶
Overview ¶
Package gomodproxy simplifies fetching data from a Go module proxy.
Index ¶
- func Download(ctx context.Context, modName, version, dir string) error
- func Latest(ctx context.Context, modName string) (latest string, err error)
- type GoChecksumDatabaseClient
- func (c *GoChecksumDatabaseClient) Log(msg string)
- func (c *GoChecksumDatabaseClient) ReadCache(file string) ([]byte, error)
- func (c *GoChecksumDatabaseClient) ReadConfig(file string) ([]byte, error)
- func (c *GoChecksumDatabaseClient) ReadRemote(path string) ([]byte, error)
- func (c *GoChecksumDatabaseClient) SecurityError(msg string)
- func (c *GoChecksumDatabaseClient) WriteCache(file string, data []byte)
- func (c *GoChecksumDatabaseClient) WriteConfig(file string, old, new []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.