Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + func ChecksumForBytes(source []byte) ([]byte, error) + func ChecksumForFile(path string) ([]byte, error) + func ChecksumForReader(rd io.Reader) ([]byte, error) + type PatchType string + const PATCHTYPE_BSDIFF + const PATCHTYPE_NONE + type Update struct + Checksum []byte + PublicKey *rsa.PublicKey + Signature []byte + TargetPath string + func New() *Update + func (u *Update) ApplyPatch(patchType PatchType) *Update + func (u *Update) CanUpdate() (err error) + func (u *Update) FromFile(path string) (err error, errRecover error) + func (u *Update) FromStream(updateWith io.Reader) (err error, errRecover error) + func (u *Update) FromUrl(url string) (err error, errRecover error) + func (u *Update) Target(path string) *Update + func (u *Update) VerifyChecksum(checksum []byte) *Update + func (u *Update) VerifySignature(signature []byte) *Update + func (u *Update) VerifySignatureWith(publicKey *rsa.PublicKey) *Update + func (u *Update) VerifySignatureWithPEM(publicKeyPEM []byte) (*Update, error)