Documentation
¶
Overview ¶
Package release reads and compares published GitHub releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareSemanticVersions ¶
func CompareSemanticVersions(first, second SemanticVersion) int
CompareSemanticVersions 按发布版本规则比较两个已解析版本。
Types ¶
type GitHubReleaseClient ¶
type GitHubReleaseClient struct {
// contains filtered or unexported fields
}
GitHubReleaseClient reads GitHub's public Releases API.
func NewGitHubReleaseClient ¶
func NewGitHubReleaseClient(options ReleaseClientOptions) (*GitHubReleaseClient, error)
NewGitHubReleaseClient constructs an unauthenticated Release reader.
type ReleaseAsset ¶
type ReleaseAsset = model.ReleaseAsset
type ReleaseChecker ¶
ReleaseChecker resolves the highest compatible published GitHub Release.
type ReleaseClientOptions ¶
ReleaseClientOptions exposes the API endpoint for deterministic tests.
type SemanticVersion ¶
type SemanticVersion = semanticVersion
SemanticVersion 是更新流程可传递的已校验版本值;字段仍保持内部封装。
func ParseSemanticVersion ¶
func ParseSemanticVersion(tag string) (SemanticVersion, error)
ParseSemanticVersion 将发布 tag 解析为可比较的版本。
Click to show internal directories.
Click to hide internal directories.