Documentation ¶
Index ¶
- func GetReleases(url string, repo api.Repository) []api.Release
- func GetRepoData(url string, owner string, repoName string) api.Repository
- func GetUserNames() []string
- func GetUserRepos(url string, user string) []api.Repository
- func OpenURL(url string) error
- func WriteUpdaterConfig(cfg UpdaterConfig)
- type UpdaterConfig
- type Warning
- type WarningID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserRepos ¶
func GetUserRepos(url string, user string) []api.Repository
func OpenURL ¶
OpenURL opens a URL. It *MAY* be susceptible to bad URLs depending on OS.
func WriteUpdaterConfig ¶
func WriteUpdaterConfig(cfg UpdaterConfig)
WriteUpdaterConfig saves a configuration as the current configuration.
Types ¶
type UpdaterConfig ¶
type UpdaterConfig struct {
DevMode bool `json:"devMode"`
}
UpdaterConfig is the configuration structure for the application.
func ReadUpdaterConfig ¶
func ReadUpdaterConfig() UpdaterConfig
ReadUpdaterConfig returns the current configuration for the application.
type Warning ¶
Warning represents a warning to show the user on the primary view.
type WarningID ¶
type WarningID int
WarningID represents a kind of warning action.
const ( // NullActionWarningID cannot be automatically fixed. NullActionWarningID WarningID = iota // InstallOrUpdatePackageWarningID warnings can be solved by installing/updating the package Parameter. InstallOrUpdatePackageWarningID // URLAndCloseWarningID warnings can be solved manually by the user given navigation to a URL. The application closes. URLAndCloseWarningID )
Click to show internal directories.
Click to hide internal directories.