version

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(productVersion string, version string) bool

Compare checks whether the specified version (with '*' patterns)

matches the given product version.

Types

type V1VersionInfo

type V1VersionInfo struct {
	Version  string `json:"Version"`
	Reboot   string `json:"Reboot"`
	Estimate struct {
		Hours   string `json:"hours"`
		Minutes string `json:"minutes"`
		Seconds string `json:"seconds"`
	} `json:"Estimate"`
}

V1VersionInfo would be decoded from the V1VersionInfo JSON array.

func GetCompatibileVersionInfo

func GetCompatibileVersionInfo(productVersion, versionInfoString string) (V1VersionInfo, error)

GetCompatibileVersionInfo checks whether the product version is in the

compatibility list, and returns version info for that product version.

Jump to

Keyboard shortcuts

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