Documentation ¶
Overview ¶
Package cas stores data in in a backing blob store with content-addressed storage and convergent encryption. That is, objects with with identical contents (using the same secret) have identical blob key and ciphertext.
Stored data is identified by a keyed hash of the plaintext data. Contents are encrypted with AEAD. All keys used are derived from the user-controlled secret by Argon2 KDFs.
Limitations ¶
- No key rotation (at this level) - No garbage collection (at this level)
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.0.2
type Option option
func WithChunkGoal ¶ added in v0.0.2
WithChunkGoal sets the desired average chunk size for chunking.
Zero will leave the previous value in effect.
func WithChunkLimits ¶ added in v0.0.2
WithChunkLimits sets the minimum and maximum chunk size.
Zero will leave the previous value in effect.
An invalid combination (min > max, including when one is left to zero and uses the previous value) will set both values to max.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DebugReadBlob ¶ added in v0.0.2
type UnexpectedContentTypeError ¶
type UnexpectedContentTypeError struct {
ContentType string
}
func (*UnexpectedContentTypeError) Error ¶
func (u *UnexpectedContentTypeError) Error() string