utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoUpgrade

func DoUpgrade() bool

nolint DoUpgrade attempts to perform an upgrade by calling a local shell script

func FileExists

func FileExists(filename string) bool

FileExists checks if the provided file exists or not

func InitAppInstance

func InitAppInstance(appID string) (s *single.Single)

InitAppInstance will attempt to initialise an instance of the application based on the provided value of appID. A FATAL error will occur causing the application to exit if another instance of the application is detected as already running.

func ReleaseAppInstance

func ReleaseAppInstance(s *single.Single)

ReleaseAppInstance will attempt to release(unlock) an instance of the application based on the single.Single reference

func UpdateAvailable

func UpdateAvailable(ownername, reponame, versiontag string) (result bool, updateMsg string)

UpdateAvailable will perform a check against the specified repository to determine if the passed in version tag is the latest or not

func UserHome

func UserHome() string

UserHome returns the current user home path

Types

This section is empty.

Jump to

Keyboard shortcuts

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