updater

package
v0.0.0-...-5d951de Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUpdates

func CheckUpdates(bl baseline.Baseline, updaters ...Updater) (bool, error)

func Install

func Install(bl baseline.Baseline, updaters ...Updater) error

Types

type RepositoryUpdater

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

func NewRepositoryUpdater

func NewRepositoryUpdater(id, dir, owner, repo string) RepositoryUpdater

func (RepositoryUpdater) CurrentVersion

func (u RepositoryUpdater) CurrentVersion() (string, error)

func (RepositoryUpdater) ID

func (u RepositoryUpdater) ID() string

func (RepositoryUpdater) Install

func (u RepositoryUpdater) Install(version string) error

func (RepositoryUpdater) IsInstalled

func (u RepositoryUpdater) IsInstalled() bool

type Updater

type Updater interface {
	CurrentVersion() (string, error)
	Install(version string) error
	IsInstalled() bool
	ID() string
}

Jump to

Keyboard shortcuts

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