Documentation ¶
Index ¶
- func HttpGet(url *url.URL) (io.ReadCloser, error)
- func NewClient(url *url.URL) *sumdb.Client
- type BuildList
- type Module
- func (m Module) CanonicalizePath(proxyUrl *url.URL) (string, error)
- func (m Module) Download(proxyUrl *url.URL, outdir string, db *sumdb.Client) error
- func (m Module) EscapedPath() string
- func (m Module) EscapedVersion() string
- func (m Module) InfoFile() ModuleFile
- func (m Module) LatestVersion(proxyUrl *url.URL) (string, error)
- func (m Module) ModuleFile() ModuleFile
- func (m Module) String() string
- func (m Module) Versions(proxyUrl *url.URL) ([]string, error)
- func (m Module) ZipFile() ModuleFile
- type ModuleFile
- type ModuleFileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildList ¶
A list of modules required for a given build
func NewBuildList ¶
func NewBuildList() *BuildList
type Module ¶
func (Module) CanonicalizePath ¶
Download the module file for a user-provided path and version and convert the path to the canonical form
func (Module) EscapedPath ¶
Escape special characters in module path strings
func (Module) EscapedVersion ¶
Escape special characters in module version strings
func (Module) InfoFile ¶
func (m Module) InfoFile() ModuleFile
Create a new ModuleFile that represents a proxy's .info file
func (Module) LatestVersion ¶
Get the most recent version of a module in semver order
func (Module) ModuleFile ¶
func (m Module) ModuleFile() ModuleFile
Create a new ModuleFile that represents a proxy's .mod file
func (Module) ZipFile ¶
func (m Module) ZipFile() ModuleFile
Create a new ModuleFile that represents a proxy's .zip file
type ModuleFile ¶
type ModuleFile struct { Mod Module Type ModuleFileType FileName string FilePath string ProxyPath string }
func NewModuleFile ¶
func NewModuleFile(m Module, fileType ModuleFileType) ModuleFile
Create a new ModuleFile of the provided type for a Module
type ModuleFileType ¶
type ModuleFileType string
const ( ModFileTypeInfo ModuleFileType = ".info" ModFileTypeModule ModuleFileType = ".mod" ModFileTypeZip ModuleFileType = ".zip" )
Types of files used by go proxies
Click to show internal directories.
Click to hide internal directories.