github

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCouldNotUpdate = errors.New(fmt.Sprintf("could not update %s", util.AppName))
)

Functions

This section is empty.

Types

type GithubContainer

type GithubContainer struct {
	Client   *github.Client
	Releases []*github.RepositoryRelease
}

func (*GithubContainer) DownloadAsset

func (gh *GithubContainer) DownloadAsset(asset *github.ReleaseAsset, targetPath string) error

DownloadAsset downloads asset from a release

func (*GithubContainer) GetChangeLog

func (gh *GithubContainer) GetChangeLog(currentVersion string) (string, error)

func (*GithubContainer) GetLatestRelease

func (gh *GithubContainer) GetLatestRelease() (*github.RepositoryRelease, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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