version

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ReleaseHost = "ttnreleases.blob.core.windows.net/release"

ReleaseHost is where we publish our releases

Variables

View Source
var ErrNotFound = errors.New("Not Found")

ErrNotFound indicates that a version was not found

Functions

func GetLatest

func GetLatest(binary string) ([]byte, error)

GetLatest gets the latest release binary

func Selfupdate

func Selfupdate(ctx ttnlog.Interface, component string)

Selfupdate runs a self-update for the current binary

Types

type Info

type Info struct {
	Version string
	Commit  string
	Date    time.Time
}

Info contains version information

func GetLatestInfo

func GetLatestInfo() (*Info, error)

GetLatestInfo gets information about the latest release for the current branch

Jump to

Keyboard shortcuts

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