Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HardcodedPackages = []ConfigPackage{
{
Path: "ricardofabila/fox",
ExecutableName: "fox",
Type: "binary",
},
{
Path: "cli/cli",
ExecutableName: "gh",
Type: "binary",
},
}
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name,omitempty"` ID int `json:"id,omitempty"` Tag string `json:"tag_name,omitempty"` Size int `json:"size,omitempty"` // bytes BrowserDownloadURL string `json:"browser_download_url,omitempty"` }
Asset represents a GitHub release asset in a repository.
func (*Asset) DownloadAsset ¶
type Config ¶
type Config struct { Remotes Remotes `yaml:"remotes"` Packages ConfigPackages `yaml:"packages"` }
type ConfigPackage ¶
type ConfigPackages ¶
type ConfigPackages = []ConfigPackage
type Package ¶
type Package struct { Description string `json:"description"` Name string `json:"name"` NameWithOwner string `json:"nameWithOwner"` UpdatedAt string `json:"updatedAt"` URL string `json:"url"` PrimaryLanguage map[string]string `json:"primaryLanguage"` // {"primaryLanguage": { // "name": "Go" // }, // I fetch these separately LatestVersion string DependsOn []string ExecutableName string Type string Releases []Release InstalledVersions []string `yaml:"installedVersions"` Aliases []string `yaml:"aliases"` Conflicts string }
func (*Package) GetReleases ¶
func (*Package) SetLatestVersion ¶
type Release ¶
type Release struct { Draft bool `json:"draft,omitempty"` Prerelease bool `json:"prerelease,omitempty"` // The following fields are not used in CreateRelease or EditRelease: ZipballURL string `json:"zipball_url,omitempty"` Tag string `json:"tag_name,omitempty"` ID int64 `json:"id,omitempty"` Assets []Asset `json:"assets,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` CreatedAt string `json:"createdAt,omitempty"` }
Release represents a GitHub release in a repository.
Click to show internal directories.
Click to hide internal directories.