godep

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoDep added in v0.0.3

type GoDep struct {
	// Proxy to use for checking Versions
	Proxy ModProxy

	// MaxRequests is the limit *per function call* of how many http requests to send at once
	MaxRequests int
}

func (*GoDep) CheckGoModBytesForUpdates added in v0.0.3

func (gp *GoDep) CheckGoModBytesForUpdates(ctx context.Context, b []byte) ([]Update, error)

CheckGoModBytesForUpdates and return slice of Avaliable Updates

type ModProxy

type ModProxy interface {
	GetLatestVersion(ctx context.Context, modulePath string) (modproxy.Info, error)
}

type Update

type Update struct {
	Module     string
	OldVersion string
	NewVersion string
}

func CheckGoModBytesForUpdates

func CheckGoModBytesForUpdates(ctx context.Context, proxy ModProxy, modBytes []byte) ([]Update, error)

CheckGoModBytesForUpdates returns a slice of Update's available in passed modBytes Deprecated: this is now replaced with a shim to calling the same function as a method on GoDep

Jump to

Keyboard shortcuts

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