grizzly

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCurrentVersionIsLatest = fmt.Errorf("current version is the latest")
View Source
var ErrInvalidSemver = fmt.Errorf("invalid semver version")
View Source
var ErrNextVersionIsMajorBump = fmt.Errorf("next version is a major bump")

Functions

This section is empty.

Types

type SelfUpdater

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

func NewSelfUpdater

func NewSelfUpdater(client *http.Client) *SelfUpdater

func (*SelfUpdater) UpdateSelf

func (updater *SelfUpdater) UpdateSelf(ctx context.Context, currentVersion string) (string, error)

Jump to

Keyboard shortcuts

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