Documentation ¶
Index ¶
- func CheckAndPrintAsync(printPrefix string, inContainer, isDSImage bool)
- func CheckAsync(doCheckVersion, inContainer, isDSImage bool) <-chan *CheckVersionInfo
- func GetCheckVersionVerdict(info *CheckVersionInfo) string
- func Print(xc *app.ExecutionContext, cmdNameParam string, logger *log.Entry, ...)
- func PrintCheckVersion(xc *app.ExecutionContext, printPrefix string, info *CheckVersionInfo)
- type CheckVersionInfo
- type CheckVersionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndPrintAsync ¶
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(xc *app.ExecutionContext, cmdNameParam 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 CheckVersionRequest ¶
type CheckVersionRequest struct {
AppVersion string `json:"app_version"`
}
Click to show internal directories.
Click to hide internal directories.