Documentation
¶
Overview ¶
Package model 保存更新流程跨领域共享的数据模型。
Index ¶
Constants ¶
View Source
const ( // GitHubRepository 是官方 GitHub 仓库标识。 GitHubRepository = "FlanChanXwO/javdb-cli" // GoInstallPackage 是 go install 更新使用的模块路径。 GoInstallPackage = "github.com/FlanChanXwO/javdb-cli/cmd/javdb" // HomebrewFormula 是 Homebrew 更新使用的 formula 标识。 HomebrewFormula = "FlanChanXwO/tap/javdb-cli" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallSource ¶
type InstallSource string
InstallSource describes the package manager or artifact that owns javdb.
const ( InstallSourceDevelopment InstallSource = "development" InstallSourceHomebrew InstallSource = "homebrew" InstallSourceGoInstall InstallSource = "go-install" InstallSourceRelease InstallSource = "release" )
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Prerelease bool `json:"prerelease"`
Assets []ReleaseAsset `json:"assets"`
}
Release is a verified candidate returned by the GitHub Releases API.
type ReleaseAsset ¶
type ReleaseAsset struct {
Name string `json:"name"`
DownloadURL string `json:"browser_download_url"`
}
ReleaseAsset is the subset of GitHub Release asset metadata used by updater.
Click to show internal directories.
Click to hide internal directories.