Documentation
¶
Index ¶
- Variables
- func CheckDir(dirPath string) error
- func CheckForUpdates() error
- func GetIdentifierAndVersion(versionedPath string) (identifier, version string, ok bool)
- func GetVersionedPath(identifier, version string) (versionedPath string)
- func LoadIndexes() error
- func LoadLatest() error
- func ScanForLatest(baseDir string, hardFail bool) (latest map[string]string, lastError error)
- func SetDatabaseRoot(path string)
- type File
Constants ¶
This section is empty.
Variables ¶
var (
ErrNotFound = errors.New("the requested file could not be found")
)
Functions ¶
func CheckForUpdates ¶ added in v0.2.3
func CheckForUpdates() error
func GetIdentifierAndVersion ¶ added in v0.2.3
func GetVersionedPath ¶ added in v0.2.3
func LoadIndexes ¶ added in v0.2.3
func LoadIndexes() error
func LoadLatest ¶ added in v0.2.3
func LoadLatest() error
LoadLatest (re)loads the latest available updates from disk.
func ScanForLatest ¶
func SetDatabaseRoot ¶ added in v0.2.3
func SetDatabaseRoot(path string)
SetDatabaseRoot tells the updates module where the database is - and where to put its stuff.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents a file from the update system.
func GetPlatformFile ¶
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) ReportError ¶
func (f *File) ReportError()
ReportError reports an error back to Safing. This will not automatically blacklist the file.