updater

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	AddEntry(Entry) error
	GetEntry(Entry) (Entry, error)
}

func NewDatabase

func NewDatabase() Database

type Entry

type Entry struct {
	ModuleName string `db:"name"`
	Commit     string `db:"git_commit"`
	Updated    bool   `db:"updated"`
}

type Updater

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

func NewUpdater

func NewUpdater(path string, preHooks []string, updateCommands []string, postHooks []string, db Database) *Updater

func (*Updater) Update

func (u *Updater) Update() error

Jump to

Keyboard shortcuts

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