upgrade

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultManager

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

func NewDefaultManager

func NewDefaultManager(Updater updater) DefaultManager

func (DefaultManager) Run

func (m DefaultManager) Run(upgradeURL string) error

type DefaultUpdater

type DefaultUpdater struct{}

func NewDefaultUpdater

func NewDefaultUpdater() DefaultUpdater

func (DefaultUpdater) Apply

func (u DefaultUpdater) Apply(reader io.Reader, opts update.Options) error

type DefaultUrlFinder

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

func NewDefaultUrlFinder

func NewDefaultUrlFinder(version version.Resolver) DefaultUrlFinder

func (DefaultUrlFinder) Url

func (duf DefaultUrlFinder) Url(os string) string

type Manager

type Manager interface {
	Run(upgradeURL string) error
}

type UrlFinder

type UrlFinder interface {
	Url(os string) string
}

Jump to

Keyboard shortcuts

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