Documentation
¶
Index ¶
Constants ¶
const (
// DefaultBaseURL is the base URL for the release-monitoring.org API
DefaultBaseURL = "https://release-monitoring.org/api/v2"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for the release-monitoring.org API
func New ¶
New creates a new anitya client with a custom HTTP client The httpClient parameter is required and should be obtained from httpclient.NewHTTPClientWithTimeout()
func (*Client) GetLatestVersion ¶
GetLatestVersion returns the latest version for a project by ID
type Project ¶
type Project struct {
ID int `json:"id"`
Name string `json:"name"`
Backend string `json:"backend"`
Ecosystem string `json:"ecosystem"`
Homepage string `json:"homepage"`
CreatedOn UnixTime `json:"created_on"`
UpdatedOn UnixTime `json:"updated_on"`
Version string `json:"version"`
StableVersions []string `json:"stable_versions"`
Versions []string `json:"versions"`
}
Project represents a project from the release-monitoring.org API