Documentation ¶
Overview ¶
Package upstream implements logic for retrieving latest released software versions based on this software upstream source URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version string
Version represents the software version as returned by some VersionProvider.
func ParseVersion ¶ added in v0.3.0
ParseVersion makes Version from a string. If the string cannot be interpreted as a Version, returns nil.
func (Version) GetVersionStr ¶
type VersionProvider ¶
VersionProvider tries to find the latest software version based on its source URL.
func NewVersionProvider ¶
func NewVersionProvider(url string, providersConfig config.Value) VersionProvider
NewVersionProvider tries to create a VersionProvider instance for a given URL. Returns nil if there's no suitable provider.
Click to show internal directories.
Click to hide internal directories.