middle

package
v0.0.0-...-db5c983 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReleases

func GetReleases(url string, repo api.Repository) []api.Release

func GetRepoData

func GetRepoData(url string, owner string, repoName string) api.Repository

func GetUserNames

func GetUserNames() []string

func GetUserRepos

func GetUserRepos(url string, user string) []api.Repository

func OpenURL

func OpenURL(url string) error

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

type Warning struct {
	Text      string
	Action    WarningID
	Parameter string
}

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
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL