softwareVersion

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

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 close the endless running go routine

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