package
0.1.4
Repository: https://github.com/jsonnetmod/jsonnetmod.git
Documentation: pkg.go.dev

# Packages

Package codehost defines the interface implemented by a code hosting source, along with support code for use by implementations.

# Functions

No description provided by the author
Download downloads the specific module version to the local download cache and returns the name of the directory corresponding to the root of the module's file tree.
DownloadDir returns the directory to which m should have been downloaded.
DownloadZip downloads the specific module version to the local zip cache and returns the name of the zip file.
GoMod is like Lookup(path).GoMod(rev) but avoids the repository path resolution in Lookup if the result is already cached on local disk.
GoModFile is like GoMod but returns the name of the file containing the cached information.
GoModSum returns the go.sum entry for the module version's go.mod file.
HaveSum returns true if the go.sum file contains an entry for mod.
ImportRepoRev returns the module and version to use to access the given import path loaded from the source code repository that the original "go get" would have used, at the specific repository revision (typically a commit hash, but possibly also a source control tag).
InfoFile is like Lookup(path).Stat(version) but returns the name of the file containing the cached information.
IsPseudoVersion reports whether v is a pseudo-version.
IsZeroPseudoVersion returns whether v is a pseudo-version with a zero base, timestamp, and revision, as returned by ZeroPseudoVersion.
Lookup returns the module with the given module path, fetched through the given proxy.
PseudoVersion returns a pseudo-version for the given major version ("v1") preexisting older tagged version ("" or "v1.2.3" or "v1.2.3-pre"), revision time, and revision identifier (usually a 12-byte commit hash prefix).
PseudoVersionBase returns the canonical parent version, if any, upon which the pseudo-version v is based.
PseudoVersionRev returns the revision identifier of the pseudo-version v.
PseudoVersionTime returns the time stamp of the pseudo-version v.
RemoveAll removes a directory written by Download or Unzip, first applying any permission changes needed to do so.
SideLock locks a file within the module cache that that previously guarded edits to files outside the cache, such as go.sum and go.mod files in the user's working directory.
No description provided by the author
Sum returns the checksum for the downloaded copy of the given module, if present in the download cache.
TrimGoSum trims go.sum to contain only the modules needed for reproducible builds.
TryProxies iterates f over each configured proxy (including "noproxy" and "direct" if applicable) until f returns no error or until f returns an error that is not equivalent to fs.ErrNotExist on a proxy configured not to fall back on errors.
WriteGoSum writes the go.sum file if it needs to be updated.
ZeroPseudoVersion returns a pseudo-version with a zero timestamp and revision, which may be used as a placeholder.

# Variables

path to go.sum; set by package modload.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

DownloadDirPartialError is returned by DownloadDir if a module directory exists but was not completely populated.
A Rev describes a single revision in a module repository.

# Interfaces

A Repo represents a repository storing all versions of a single module.