update

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(current *version.Version, provider Provider) mantra.Service

New returns a new update service

Types

type Provider

type Provider interface {
	Interval() time.Duration
	Versions() ([]*version.Version, error)
	Download(version *version.Version) error
}

Provider provides updates

type UpdateService

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

UpdateService is a service handling self-updates

func (*UpdateService) Stop

func (s *UpdateService) Stop() error

Stop stops the service

Jump to

Keyboard shortcuts

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