Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFeed ¶
type JSONFeed struct {
Versions []ToolsVersion `json:"versions"`
}
JSONFeed represents the structure of the JSON document consumed by the MongoDB downloads center. An abbreviated version of the document might look like:
{ "versions": [ { "version": "4.3.2", "downloads": [ { "name": "amazon", "arch": "x86_64", "archive": { "url": "fastdl.mongodb.org/tools/db/...tgz", "md5": "4ec7...", "sha1": "3269...", "sha256": "0b679..." }, "package": { "url": "fastdl.mongodb.org/tools/db/...rpm", "md5": "5b35...", "sha1": "b07c...", "sha256": "f6e7..." } }, ... ] } ] }
type ToolsArchive ¶
type ToolsArchive ToolsArtifact
type ToolsArtifact ¶
type ToolsDownload ¶
type ToolsDownload struct { Name string `json:"name"` Arch string `json:"arch"` Archive ToolsArchive `json:"archive"` Package *ToolsPackage `json:"package,omitempty"` }
type ToolsPackage ¶
type ToolsPackage ToolsArtifact
type ToolsVersion ¶
type ToolsVersion struct { Version string `json:"version"` Downloads []ToolsDownload `json:"downloads"` }
Click to show internal directories.
Click to hide internal directories.