Documentation
¶
Overview ¶
Package store is the runhost's store of the releases it has run: each one's archive and the facts it arrived with, encrypted at rest, so a later run of the same release need not send it again. Whatever comes out of the store is verified again before it runs; the store keeps bytes, not trust.
An entry is the magic, a 12-byte nonce, and AES-256-GCM over a length- prefixed JSON document (job.Release) followed by the archive, with the release's digest as additional data, so an entry moved to another digest's name does not open. The key is the store's own, made at its first use and kept owner-only beside it.
Index ¶
Constants ¶
const KeyFile = "store.key"
KeyFile is the store key's file name, beside the store's directory.
Variables ¶
var ErrDamaged = errors.New("the runhost's stored release does not open: it was changed since it was stored")
ErrDamaged means an entry did not open with the store's key: it was changed, moved or cut.
var ErrNotStored = errors.New("the runhost's store holds no such release")
ErrNotStored means the store holds no release of that digest.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the release store under Dir.