dist

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Handle updating new releases from a godist server

Index

Constants

View Source
const (
	Version = "0.2.0"
)

Variables

View Source
var DigicertHighAssuranceCert = `` /* 1366-byte string literal not displayed */

Functions

This section is empty.

Types

type Dist

type Dist struct {
	Host    string
	Name    string
	Project string
	Version string
}

func NewDist

func NewDist(project string, version string) (d *Dist)

Initialize a new godist client, speciying a project name e.g. "ddollar/forego"

func (*Dist) FullUpdate added in v0.14.2

func (d *Dist) FullUpdate(to string) (err error)

Update to a specific version regardless of the starting version

func (*Dist) Update

func (d *Dist) Update() (to string, err error)

Update the currently running binary to the latest version

func (*Dist) UpdateTo

func (d *Dist) UpdateTo(to string) (err error)

Update the currently running binary to a specific version

type Release

type Release struct {
	Version string
	Url     string
}

Jump to

Keyboard shortcuts

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