Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSchemeNotHTTPS = errors.New("scheme is not HTTPS") ErrNoUpdateAvailable = errors.New("no update available") )
View Source
var ( ErrUpdateNotFound = fmt.Errorf("update not found") ErrUpdateForbidden = fmt.Errorf("update forbidden") )
View Source
var (
ErrInvalidVersion = errors.New("invalid version")
)
Functions ¶
func GetChannelName ¶
Types ¶
type UpdateManifest ¶
type UpdateManifest struct { Name string `json:"name"` Version string `json:"version"` RemotePrefix string `json:"remote_prefix"` }
func Check ¶
func Check(appName, version string) (*UpdateManifest, error)
type UpdateVersionManifest ¶
type UpdateVersionManifest struct { Name string `json:"name"` Version string `json:"version"` Sha256 string `json:"sha256"` }
func CheckVersion ¶
func CheckVersion(appName, remotePrefix string) (*UpdateVersionManifest, error)
Click to show internal directories.
Click to hide internal directories.