apriori

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(path string) (goproxy.Plugin, error)

NewPlugin "apriori" - "cache" is boring: some file may contains information <mod path> → <version> → (<rev info>, <go.mod path>, <zip archive path>) and what it hidden there is enough for a functional go proxy serving exactly these modules at exactly these versions

Types

type Mapping

type Mapping map[string]map[string]ModuleInfo

Mapping maps path → (version → module info)

type ModuleInfo

type ModuleInfo struct {
	RevInfo     goproxy.RevInfo
	GoModPath   string
	ArchivePath string
}

ModuleInfo information needed for go modules proxy protocol

Jump to

Keyboard shortcuts

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