updates

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("the requested file could not be found")
)

Functions

func ReloadLatest

func ReloadLatest() error

ReloadLatest reloads available updates from disk.

func ScanForLatest

func ScanForLatest(baseDir string, hardFail bool) (latest map[string]string, lastError error)

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File represents a file from the update system.

func GetFile

func GetFile(identifier string) (*File, error)

GetFile returns the latest generic file identified by the given identifier.

func GetPlatformFile

func GetPlatformFile(identifier string) (*File, error)

GetPlatformFile returns the latest platform specific file identified by the given identifier.

func (*File) Blacklist

func (f *File) Blacklist()

Blacklist notifies the update system that this file is somehow broken, and should be ignored from now on.

func (*File) Open

func (f *File) Open()

Open opens the file and returns the

func (*File) Path

func (f *File) Path() string

Path returns the filepath of the file.

func (*File) ReportError

func (f *File) ReportError()

ReportError reports an error back to Safing. This will not automatically blacklist the file.

func (*File) Stable

func (f *File) Stable() bool

Stable returns whether the file is from a stable release.

func (*File) Version

func (f *File) Version() string

Version returns the version of the file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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