Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("Not found")
Functions ¶
func ParseVersionedPackage ¶
ParseVersionedPackage checks if the given package is a versioned package (`python@3.10`) and returns its name and version
Types ¶
type Package ¶
type Package struct { Name string `json:"name"` NumVersions int `json:"num_versions"` Versions []PackageVersion `json:"versions,omitempty"` }
type PackageInfo ¶
type PackageInfo struct { ID int `json:"id"` CommitHash string `json:"commit_hash"` System string `json:"system"` LastUpdated int `json:"last_updated"` StoreHash string `json:"store_hash"` StoreName string `json:"store_name"` StoreVersion string `json:"store_version"` MetaName string `json:"meta_name"` MetaVersion []string `json:"meta_version"` AttrPaths []string `json:"attr_paths"` Version string `json:"version"` Summary string `json:"summary"` }
type PackageVersion ¶
type PackageVersion struct { PackageInfo Name string `json:"name"` Systems map[string]PackageInfo `json:"systems,omitempty"` }
type SearchResults ¶
Click to show internal directories.
Click to hide internal directories.