fetch

package
v0.0.0-...-e826043 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotNewer = fmt.Errorf("Remote file is not newer than provided time")

ErrNotNewer is a status error usage to indicate that the remote file is not newer

Functions

This section is empty.

Types

type Repo

type Repo struct {
	URL     string
	Release string
}

Repo represents a remote slackware software repo

func (Repo) ChangeLog

func (r Repo) ChangeLog() (e []changelog.Entry, mtime time.Time, err error)

ChangeLog fetches the ChangeLog.txt for this remote Repo, along with the last-modified (for comparisons).

func (Repo) NewerChangeLog

func (r Repo) NewerChangeLog(than time.Time) (e []changelog.Entry, mtime time.Time, err error)

NewerChangeLog checks the last-modified time of the remote ChangeLog.txt and only fetches it if the remote is newer than the provided time.

Jump to

Keyboard shortcuts

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