softwareVersion

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: GPL-3.0 Imports: 9 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 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