version

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunAt time.Time
View Source
var RunAtEpoch string

Functions

func BuildTime

func BuildTime() time.Time

BuildTime gets the build time

func GitSHA

func GitSHA() string

GitSHA gets the gitsha

func NewUsrbinSDK added in v0.42.0

func NewUsrbinSDK(currentVersion string) (*usrbin.SDK, error)

func PerformUpgrade added in v0.42.0

func PerformUpgrade() error

func Print added in v0.42.0

func Print()

func PrintIfUpgradeAvailable added in v0.42.0

func PrintIfUpgradeAvailable()

PrintToStdErrIfUpgradeAvailable prints the update info to stderr if available

func Refresh

func Refresh()

func VerifyCanUpgrade added in v0.42.0

func VerifyCanUpgrade() error

func Version

func Version() string

Version gets the version

Types

type Build

type Build struct {
	Version      string                    `json:"version,omitempty"`
	GitSHA       string                    `json:"git,omitempty"`
	BuildTime    time.Time                 `json:"buildTime,omitempty"`
	TimeFallback string                    `json:"buildTimeFallback,omitempty"`
	GoInfo       GoInfo                    `json:"go,omitempty"`
	UpdateInfo   *updatechecker.UpdateInfo `json:"updateInfo,omitempty"`
}

Build holds details about this build of the replicated cli binary

func GetBuild

func GetBuild() Build

GetBuild gets the build

type GoInfo

type GoInfo struct {
	Version  string `json:"version,omitempty"`
	Compiler string `json:"compiler,omitempty"`
	OS       string `json:"os,omitempty"`
	Arch     string `json:"arch,omitempty"`
}

Jump to

Keyboard shortcuts

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