backupseal

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package backupseal encrypts the backups of the key store with age (filippo.io/age), for the public key of the owner (#75): the process that seals a backup cannot open it.

Index

Constants

This section is empty.

Variables

View Source
var ErrRecipient = errors.New("backup recipient must be one age public key")

ErrRecipient means the recipient is not one native age public key.

Functions

This section is empty.

Types

type Sealer

type Sealer struct {
	// contains filtered or unexported fields
}

Sealer encrypts backups for one recipient. It implements app.BackupSealer.

func New

func New(recipient string) (*Sealer, error)

New returns a Sealer for recipient, one native age public key, such as the "age1pq1…" printed by age-keygen -pq, or ErrRecipient.

func (*Sealer) Seal

func (s *Sealer) Seal(w io.Writer) (io.WriteCloser, error)

Seal returns a WriteCloser encrypting what is written to it into w; Close writes the last chunk.

Jump to

Keyboard shortcuts

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