Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReleasesAPI is the format string for the JetBrains Releases API ReleasesAPI = "https://data.services.jetbrains.com/products/releases?code=%s" // LatestAPI is the format string for the JetBrains Releases API when asking for latest LatestAPI = "https://data.services.jetbrains.com/products/releases?code=%s&latest=true" )
Variables ¶
View Source
var ReleaseCodes = map[string]string{
"appcode": "AC",
"clion": "CL",
"datagrip": "DG",
"goglang": "GO",
"ideaiu": "IIU",
"ideaic": "IIC",
"phpstorm": "PS",
"pycharm-professional": "PCP",
"pycharm-ce": "PCC",
"pycharm-community": "PCC",
"pycharm-edu": "PCE",
"rider": "RD",
"rubymine": "RM",
"upsource": "US",
"webstorm": "WS",
}
ReleaseCodes provides a mapping between JetBrains products and their API codename
View Source
var SourceRegex = regexp.MustCompile("https?://download.jetbrains.com/.+?/(.+?)-\\d.*")
SourceRegex matches JetBrains sources
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct { ChecksumLink string `json:"checksumLink"` Link string `json:"link"` Size uint64 `json:"size"` }
Download is a JSON representation of a JetBrains downloadable source
type Provider ¶
type Provider struct{}
Provider is the upstream provider interface for JetBrains
type Release ¶
type Release struct { Build string `json:"build"` Date string `json:"date"` Downloads map[string]Download `json:"downloads"` Notes string `json:"notesLink"` Type string `json:"type"` MajorVersion string `json:"majorVersion"` Version string `json:"version"` }
Release is a JSON representation of a JetBrains release
Click to show internal directories.
Click to hide internal directories.