update

package
v0.0.0-...-a649549 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

TODO: generate this with godownloader

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRelease

type GithubRelease struct {
	Slug   string
	Name   string
	Client *http.Client
}

func NewGithubRelease

func NewGithubRelease(slug, exe string) *GithubRelease

func (*GithubRelease) DownloadURL

func (rel *GithubRelease) DownloadURL() string

func (*GithubRelease) Executable

func (rel *GithubRelease) Executable() (exe string)

func (*GithubRelease) LatestURL

func (rel *GithubRelease) LatestURL() string

func (*GithubRelease) PeekLatestRelease

func (rel *GithubRelease) PeekLatestRelease() (latest string, err error)

func (*GithubRelease) ReplaceCurrentRelease

func (rel *GithubRelease) ReplaceCurrentRelease(latest string) (err error)

assumes not v-prefixed assumes never re-tagging releases assumes only releasing newer tags

Jump to

Keyboard shortcuts

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