upgrade

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogUpdateCheckError

func LogUpdateCheckError(err error)

Types

type BinaryUpgrader

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

func NewBinaryUpgrader

func NewBinaryUpgrader(reg registry.RepoRegistry, currentVersion string) (*BinaryUpgrader, error)

func (*BinaryUpgrader) Upgrade

func (up *BinaryUpgrader) Upgrade(ctx context.Context) error

type UpdateNotice

type UpdateNotice struct {
	CurrentVersion string
	LatestVersion  string
	// contains filtered or unexported fields
}

func (*UpdateNotice) Message

func (n *UpdateNotice) Message() string

type UpdateNotifier

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

func NewUpdateNotifier

func NewUpdateNotifier(reg registry.RepoRegistry) (*UpdateNotifier, error)

func (*UpdateNotifier) Check

func (n *UpdateNotifier) Check(ctx context.Context, currentVersion string) (*UpdateNotice, error)

func (*UpdateNotifier) MarkNotified

func (n *UpdateNotifier) MarkNotified(notice *UpdateNotice) error

type Upgrader

type Upgrader interface {
	Upgrade(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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