Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` ContentType string `json:"content_type"` BrowserDownloadURL string `json:"browser_download_url"` }
Asset 静态资源
func (Asset) IsCompressedFile ¶
IsCompressedFile 返回是否是压缩文件的布尔值
type ReleaseUpdater ¶
type ReleaseUpdater struct { }
ReleaseUpdater 版本更新器
func (ReleaseUpdater) Apply ¶
func (up ReleaseUpdater) Apply(rel *Release, findAsset func([]Asset) (idx int), findChecksum func([]Asset) (algo checksum.Algorithm, expectedChecksum string, err error), ) error
Apply 更新指定版本
func (ReleaseUpdater) CheckForUpdates ¶
func (up ReleaseUpdater) CheckForUpdates(current *semver.Version, owner, repo string) (rel *Release, yes bool, err error)
CheckForUpdates 检查是否有更新
Click to show internal directories.
Click to hide internal directories.