Documentation ¶
Index ¶
- Variables
- func CheckUsing(pkg string) (*string, error)
- func ParseVersion(versionStr string, versionFmt string) (*string, error)
- func RefreshRecipes() error
- func RemoveUsing(pkg string) error
- func ShouldRefreshRecipes() (bool, error)
- func WriteUsing(pkg string, using string) error
- type ArchLinuxPkgInfo
- type AssetInfo
- type GithubDir
- type OsArchPair
- type OsInfo
- type PkgConfig
- type PkgGroupConfig
- type PkgInfo
- type RefreshFile
- type ReleaseInfo
- type ReleaseTagInfo
- type SingleOrMulti
- type UsingInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var GOOStoPkgOs = map[string]string{
"darwin": "macos",
"windows": "win",
"linux": "linux",
}
Functions ¶
func CheckUsing ¶
Check using file. If UsingFile doesn't exist, it is not using anything
func RefreshRecipes ¶
func RefreshRecipes() error
func RemoveUsing ¶
func ShouldRefreshRecipes ¶
func WriteUsing ¶
Types ¶
type ArchLinuxPkgInfo ¶
type ArchLinuxPkgInfo struct {
PkgVer string
}
type OsArchPair ¶
type OsInfo ¶
type OsInfo struct { Name string `yaml:"name"` Ext string `yaml:"ext"` BinPaths SingleOrMulti `yaml:"bin_path"` ExtractHasRoot bool `yaml:"extract_has_root"` IsRawBinary bool `yaml:"is_raw_binary"` }
type PkgConfig ¶
type PkgConfig struct { Title string Tagline string About string InfoUrl string `yaml:"info_url"` ReleasesUrl string `yaml:"releases_url"` BaseDownloadUrl string `yaml:"base_download_url"` GitUser string `yaml:"git_user"` GitRepo string `yaml:"git_repo"` GiteaURL string `yaml:"gitea_url"` SourceUrl string `yaml:"source_url"` FilenameFormat string `yaml:"filename_format"` VersionFormat string `yaml:"version_format"` LatestStrategy string `yaml:"latest_strategy"` ForceLatest bool `yaml:"force_latest"` AllowPrerelease bool `yaml:"allow_prerelease"` ArchLinuxPkgName string `yaml:"arch_linux_pkg_name"` OsMap map[string]OsInfo `yaml:"os_map"` ArchMap map[string]string `yaml:"arch_map"` Ignore []OsArchPair `yaml:"ignore"` }
func ParsePkgConfigOnline ¶
func (*PkgConfig) GetAssetStemExtUrl ¶
/
func (*PkgConfig) GetLatestVersion ¶
func (*PkgConfig) GetMyBinPaths ¶
type PkgGroupConfig ¶
type PkgGroupConfig struct { Title string Tagline string About string InfoUrl string `yaml:"info_url"` Packages []string `yaml:"packages"` }
func ParseGroupConfig ¶
func ParseGroupConfig(group string) *PkgGroupConfig
type RefreshFile ¶
type ReleaseInfo ¶
type ReleaseTagInfo ¶
type SingleOrMulti ¶
type SingleOrMulti struct {
Values []string
}
func (*SingleOrMulti) UnmarshalYAML ¶
func (sm *SingleOrMulti) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.