Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashMismatch = errors.New("new file hash mismatch after patch")
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct { CurrentVersion string ApiURL string CmdName string BinURL string DiffURL string Dir string Info struct { Version string Sha256 []byte } }
Update protocol.
GET hk.heroku.com/hk/linux-amd64.json 200 ok { "Version": "2", "Sha256": "..." // base64 }
then
GET hkpatch.s3.amazonaws.com/hk/1/2/linux-amd64 200 ok [bsdiff data]
or
GET hkdist.s3.amazonaws.com/hk/2/linux-amd64.gz 200 ok [gzipped executable data]
func (*Updater) BackgroundRun ¶
func (u *Updater) BackgroundRun()
Directories
¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/bitbucket.org/kardianos/osext
Extensions to the standard "os" package.
|
Extensions to the standard "os" package. |
_workspace/src/github.com/inconshreveable/go-update
Package update allows a program to "self-update", replacing its executable file with new bytes.
|
Package update allows a program to "self-update", replacing its executable file with new bytes. |
_workspace/src/github.com/kr/binarydist
Package binarydist implements binary diff and patch as described on http://www.daemonology.net/bsdiff/.
|
Package binarydist implements binary diff and patch as described on http://www.daemonology.net/bsdiff/. |
Click to show internal directories.
Click to hide internal directories.