Documentation
¶
Index ¶
Constants ¶
View Source
const ( Prefix = "sourceforge:" AliasPrefix = "sf:" )
Variables ¶
This section is empty.
Functions ¶
func SetVerbose ¶
func VerboseEnabledForTest ¶
func VerboseEnabledForTest() bool
func VersionFromText ¶
Types ¶
type File ¶
type File struct {
Name string `json:"name"`
Path string `json:"path"`
DownloadURL string `json:"download_url"`
URL string `json:"url"`
FullPath string `json:"full_path"`
Type FileType `json:"type"`
Downloadable bool `json:"downloadable"`
PublishedAt time.Time
ModTime int64 `json:"mtime"`
UpdatedAt int64 `json:"updated"`
}
func LatestVersionFile ¶
func ParseFilesPage ¶
func ParseRSSFilesPage ¶ added in v1.7.0
type Finder ¶
type Finder struct {
Project string
Path string
Tag string
Getter HTTPGetter
}
func (Finder) FallbackVersionAssets ¶ added in v1.5.5
type LatestInfo ¶
type LatestInfo struct {
Tag string
Version string
Path string
PublishedAt time.Time
Prerelease bool
AssetsCount int
}
func LatestVersion ¶
func LatestVersion(project, sourcePath string, getter HTTPGetter) (LatestInfo, error)
func ListReleases ¶ added in v1.6.2
func ListReleases(project, sourcePath string, limit int, includePrerelease bool, getter HTTPGetter) ([]LatestInfo, error)
Click to show internal directories.
Click to hide internal directories.