cache

package
v0.0.0-...-194d0c4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

func SetInstalledBy

func SetInstalledBy(mt MeansType) error

func SetUpdateInfo

func SetUpdateInfo(latest *semver.Version) error

Types

type Cache

type Cache struct {
	UpdateAvailable bool      `default:"false" toml:"updateAvailable"`
	LatestVersion   string    `default:"" toml:"latestVersion"`
	InstalledBy     MeansType `default:"" toml:"installedBy"`
}

func Get

func Get() *Cache

type MeansType

type MeansType updater.MeansType
const MeansTypeUndefined MeansType = ""

Jump to

Keyboard shortcuts

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