softwareVersion

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStableTagProvider

func NewStableTagProvider(stableTagLocation string) *stableTagProvider

NewStableTagProvider returns a new instance of stableTagProvider

Types

type SoftwareVersionChecker

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

SoftwareVersionChecker is a component which is used to check if a new software stable tag is available

func NewSoftwareVersionChecker

func NewSoftwareVersionChecker(
	appStatusHandler core.AppStatusHandler,
	stableTagProvider StableTagProviderHandler,
	pollingIntervalInMinutes int,
) (*SoftwareVersionChecker, error)

NewSoftwareVersionChecker will create an object for software version checker

func (*SoftwareVersionChecker) Close

func (svc *SoftwareVersionChecker) Close() error

Close will handle the closing of opened go routines

func (*SoftwareVersionChecker) IsInterfaceNil

func (svc *SoftwareVersionChecker) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*SoftwareVersionChecker) StartCheckSoftwareVersion

func (svc *SoftwareVersionChecker) StartCheckSoftwareVersion()

StartCheckSoftwareVersion will check on a specific interval if a new software version is available

type StableTagProviderHandler

type StableTagProviderHandler interface {
	FetchTagVersion() (string, error)
	IsInterfaceNil() bool
}

StableTagProviderHandler defines what a stable tag provider should be able to do

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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