Versions in this module Expand all Collapse all v1 v1.0.0 Jun 14, 2020 Changes in this version + func Apply(update io.Reader, opts Options) error + func RollbackError(err error) error + type Options struct + Checksum []byte + Hash crypto.Hash + OldSavePath string + Patcher Patcher + PublicKey crypto.PublicKey + Signature []byte + TargetMode os.FileMode + TargetPath string + Verifier Verifier + func (o *Options) CheckPermissions() error + func (o *Options) SetPublicKeyPEM(pembytes []byte) error + type Patcher interface + Patch func(old io.Reader, new io.Writer, patch io.Reader) error + func NewBSDiffPatcher() Patcher + type Verifier interface + VerifySignature func(checksum, signature []byte, h crypto.Hash, publicKey crypto.PublicKey) error + func NewDSAVerifier() Verifier + func NewECDSAVerifier() Verifier + func NewRSAVerifier() Verifier