dist

package
v0.22.27 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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