version

package
v0.0.0-...-b60b6a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndPrintAsync

func CheckAndPrintAsync(printPrefix string, inContainer, isDSImage bool)

CheckAndPrintAsync check the app version and prints the results

func CheckAsync

func CheckAsync(doCheckVersion, inContainer, isDSImage bool) <-chan *CheckVersionInfo

CheckAsync checks the app version without blocking

func GetCheckVersionVerdict

func GetCheckVersionVerdict(info *CheckVersionInfo) string

GetCheckVersionVerdict returns the version status of the locally installed package

func Print

func Print(printPrefix string, logger *log.Entry, client *docker.Client, checkVersion, inContainer, isDSImage bool)

Print shows the master app version information

func PrintCheckVersion

func PrintCheckVersion(
	xc *app.ExecutionContext,
	printPrefix string,
	info *CheckVersionInfo)

PrintCheckVersion shows if the current version is outdated

Types

type CheckVersionInfo

type CheckVersionInfo struct {
	Status   string `json:"status"`
	Outdated bool   `json:"outdated,omitempty"`
	Current  string `json:"current,omitempty"`
}

func Check

func Check(inContainer, isDSImage bool) *CheckVersionInfo

Check checks the app version

type CheckVersionRequest

type CheckVersionRequest struct {
	AppVersion string `json:"app_version"`
}

Jump to

Keyboard shortcuts

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