updater

package
v0.0.0-...-175a4df Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(log *util.Logger, httpd webServer, outChan chan<- util.Param)

Run regularly checks version

Types

type Repo

type Repo struct {
	*github.Client
	// contains filtered or unexported fields
}

Repo is a github repository adapter

func NewRepo

func NewRepo(log *util.Logger, owner, repository string) *Repo

NewRepo creates repository adapter

func (*Repo) FindReleaseAsset

func (r *Repo) FindReleaseAsset(name string) (int64, int, error)

FindReleaseAsset finds asset by name and returns ID and size

func (*Repo) GetLatestRelease

func (r *Repo) GetLatestRelease() (*github.RepositoryRelease, error)

GetLatestRelease gets latest of github releases

func (*Repo) ReleaseNotes

func (r *Repo) ReleaseNotes(from string) (rendered string, err error)

ReleaseNotes returns github release notes for the (from,to] semver interval

func (*Repo) StreamAsset

func (r *Repo) StreamAsset(id int64) (io.ReadCloser, error)

StreamAsset provides a ReadCloser for streaming the assets over HTTP

Jump to

Keyboard shortcuts

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