Documentation
¶
Overview ¶
Package remote looks tools up in the Terraform registry, Artifact Hub, npm, PyPI and the GitHub search API, for the resolver in package registry.
Index ¶
Constants ¶
const ( TerraformRegistryHost = "registry.terraform.io" ArtifactHubHost = "artifacthub.io" NPMHost = "registry.npmjs.org" PyPIHost = "pypi.org" )
Hosts of the package registries that Remote asks.
Variables ¶
This section is empty.
Functions ¶
func Hosts ¶
func Hosts() []string
Hosts returns the hosts Remote sends requests to, other than the GitHub API.
func ParseGitHubURL ¶
ParseGitHubURL returns the owner/repo of a GitHub URL in any of the forms package metadata uses (https, git+https, git+ssh, git@github.com:, github:) and the path inside the repository that a /tree/<ref>/ or /blob/<ref>/ URL points to.
Types ¶
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
Remote is a registry.Finder that asks the Terraform registry, Artifact Hub, npm, PyPI and GitHub.