updater

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoUpdaterErr = errors.New("no matching updater found")

Functions

func IsIgnoreTag

func IsIgnoreTag(tag string) bool

Types

type Updater

type Updater interface {
	Tag() string
	Infer(dir.Directory) (bool, error)
	Update(ctx context.Context, output io.Writer, path string) error
}

func Infer

func Infer(d dir.Directory) (Updater, error)

func MatchByTag

func MatchByTag(tag string) (Updater, error)

Jump to

Keyboard shortcuts

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