update

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	CacheDir   string
	ForceCheck bool
	SkipCheck  bool
	Repo       string
	Version    string
	Client     *http.Client
}

func (*Notifier) CheckForUpdate

func (n *Notifier) CheckForUpdate() (*github.Release, error)

type StateEntry

type StateEntry struct {
	CheckedForUpdateAt time.Time       `yaml:"checked_for_update_at"`
	LatestRelease      *github.Release `yaml:"latest_release"`
}

Jump to

Keyboard shortcuts

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