Documentation
¶
Overview ¶
Package registry handles interaction with the C3PM registry. It handles file downloading and version querying.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchPackage ¶
FetchPackage downloads a package given it's name and version number.
func GetLastVersion ¶
GetLastVersion calls the registry to find the latest version published to the API. The version found can be different to the version that has been published to the API in case of support of ancient versions. For example, if a package is currently at version 3.3.0, but the maintainer last pushed version 2.7.3, a patch for version 2.7. The version returned by GetLastVersion will be 3.3.0, because it is the highest SemVer version number.
func SendMetric ¶ added in v0.3.0
Types ¶
type ListRegistryResponse ¶
type ListRegistryResponse struct { Name string Contents []struct { Key string `xml:"Key"` } `xml:"Contents"` }
ListRegistryResponse is the representation of the XML structure returned by the registry.