Documentation
¶
Index ¶
- Constants
- Variables
- func ForDB(tx *gorm.DB, encryptor crypto.Encryptor) crypto.Encryptor
- func NewApplicationEncryptor(versioned *crypto.VersionedEncryptor, store *Store) crypto.Encryptor
- type Auditor
- type Migrator
- type Store
- func (s *Store) Active(ctx context.Context) (crypto.DataKey, error)
- func (s *Store) CreateAndActivateDataKey(ctx context.Context) (uuid.UUID, error)
- func (s *Store) Find(ctx context.Context, id uuid.UUID) (crypto.DataKey, error)
- func (s *Store) Initialize(ctx context.Context) error
- func (s *Store) List(ctx context.Context) ([]models.ApplicationEncryptionKey, uuid.UUID, error)
- func (s *Store) PrimaryMasterKeyRef() string
- func (s *Store) Rewrap(ctx context.Context) error
Constants ¶
View Source
const RegistryVersion = 1
Variables ¶
View Source
var ErrMigrationUnfinished = errors.New("finish the encryption migration before creating a data key")
Functions ¶
func ForDB ¶
ForDB binds application encryption key lookups to the caller's DB handle. Other encryptors do not query the data key table.
func NewApplicationEncryptor ¶
func NewApplicationEncryptor(versioned *crypto.VersionedEncryptor, store *Store) crypto.Encryptor
Types ¶
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
func NewAuditor ¶
func NewAuditor(job *models.ApplicationEncryptionMigration, registry *registry.Registry, locations []models.EncryptedStorageLocation) *Auditor
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func NewMigrator(job *models.ApplicationEncryptionMigration, encryptor crypto.Encryptor, registry *registry.Registry, locations []models.EncryptedStorageLocation) *Migrator
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateAndActivateDataKey ¶
func (*Store) PrimaryMasterKeyRef ¶
Click to show internal directories.
Click to hide internal directories.