package
0.14.0
Repository: https://github.com/sourcenetwork/defradb.git
Documentation: pkg.go.dev

# Functions

EnsureContextWithEncryptor returns a context with a document encryptor and the document encryptor itself.
GetContextConfig returns the doc encryption config from the given context.
GetEncryptorFromContext returns a document encryptor from the given context.
NewRequestKeysMessage creates a new event message for a request of a node to fetch an encryption key for a specific docID/field It returns the message and the results that that can be waited on.
NewResults creates a new Results object and a channel that can be used to send results to it.
SetContextConfig returns a new context with the doc encryption config set.
SetContextConfigFromParams returns a new context with the doc encryption config created from given params.
ShouldEncryptDocField returns true if the given field should be encrypted based on the context config.
ShouldEncryptIndividualField returns true if the given field should be encrypted individually based on the context config.

# Constants

No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

DocEncConfig is the configuration for document encryption.
DocEncryptor is a document encryptor that encrypts and decrypts individual document fields.
KeyRetrievedEvent represents a key that was retrieved.
RequestedKeyEventData represents the data that was retrieved for a specific key.
RequestKeysEvent represents a request of a node to fetch an encryption key for a specific docID/field It must only contain public elements not protected by ACP.
No description provided by the author
No description provided by the author